RFR: 8299635: More test issues for deprecated sprintf in Xcode 14 [v5]

Xue-Lei Andrew Fan xuelei at openjdk.org
Sat Jan 14 19:01:52 UTC 2023


> The sprintf is deprecated in Xcode 14 because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for hotspot impl, and [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378) for building, but the test case was not covered. The failure was reported in [PR 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), while running tier1 testing.
> 
> This patch is trying to find the use of sprintf in test cases, and replace it with snprintf accordingly.

Xue-Lei Andrew Fan has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:

 - Merge
 - correction for ppc
 - missed update for debug mode
 - more in src/hotspot
 - typo correction
 - 8299635: More test issues for deprecated sprintf in Xcode 14

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/11935/files
  - new: https://git.openjdk.org/jdk/pull/11935/files/076f8b54..143887e9

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11935&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11935&range=03-04

  Stats: 8279 lines in 310 files changed: 5031 ins; 1837 del; 1411 mod
  Patch: https://git.openjdk.org/jdk/pull/11935.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11935/head:pull/11935

PR: https://git.openjdk.org/jdk/pull/11935


More information about the serviceability-dev mailing list