RFR: 8299378: sprintf is deprecated in Xcode 14 [v3]

Xue-Lei Andrew Fan xuelei at openjdk.org
Tue Jan 3 16:28:54 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), but the test was not covered. The failure was [reported later](https://github.com/openjdk/jdk/pull/11115#issuecomment-1344973773), while gtest is enabled for building.
> 
> This patch is just to make sure the building could pass.   Other than that, the use of `sprintf` in other places are not touched.

Xue-Lei Andrew Fan has updated the pull request incrementally with one additional commit since the last revision:

  sort includes alphabetically

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11793/files
  - new: https://git.openjdk.org/jdk/pull/11793/files/3d5f9d43..59d43781

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11793&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11793&range=01-02

  Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/11793.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11793/head:pull/11793

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


More information about the hotspot-dev mailing list