RFR: 8296812: sprintf is deprecated in Xcode 14 [v19]

Xue-Lei Andrew Fan xuelei at openjdk.org
Thu Dec 8 19:41:16 UTC 2022


> Hi,
> 
> May I have this update reviewed?
> 
> The sprintf is deprecated in Xcode 14 because of security concerns, and the use of it causing building failure.  The build could pass if warnings are disabled for codes that use sprintf method.  For the long run, the sprintf could be replaced with snprintf.  This patch is trying to check if snprintf could be used.
> 
> Thanks,
> Xuelei

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 24 additional commits since the last revision:

 - adlc update per review
 - Merge
 - update on review feedback
 - comment for snprintf_checked
 - use checked snprintf for adlc
 - use checked snprintf
 - no check on adlc
 - revert use of assert
 - extra sizeof typo
 - more size_t updare for windows build
 - ... and 14 more: https://git.openjdk.org/jdk/compare/bc6e44f6...49bb58fd

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11115/files
  - new: https://git.openjdk.org/jdk/pull/11115/files/c391535c..49bb58fd

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11115&range=18
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11115&range=17-18

  Stats: 67182 lines in 1253 files changed: 30641 ins; 21894 del; 14647 mod
  Patch: https://git.openjdk.org/jdk/pull/11115.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11115/head:pull/11115

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


More information about the hotspot-dev mailing list