RFR: 8296812: sprintf is deprecated in Xcode 14

Xue-Lei Andrew Fan xuelei at openjdk.org
Sun Nov 13 06:39:00 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

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

Commit messages:
 - use const size_t
 - size correction
 - size correction
 - 8296812: sprintf is deprecated in Xcode 14

Changes: https://git.openjdk.org/jdk/pull/11115/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11115&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8296812
  Stats: 109 lines in 24 files changed: 15 ins; 3 del; 91 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 client-libs-dev mailing list