-
Bug
-
Resolution: Fixed
-
P3
-
11, 17, 18, 19, 20
-
b02
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8335754 | 17.0.13 | George Adams | P3 | Resolved | Fixed | b01 |
/Users/xueleifan/workspace/jdk-dev/src/hotspot/share/adlc/adlparse.cpp:215:11: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
sprintf(buf, "%s_%d", instr->_ident, match_rules_cnt++);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
The system is macOS Monterey version 12.6. Here is the related OpenJDK building configure summary:
* Toolchain: clang (clang/LLVM from Xcode 14.1)
* Sysroot: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk
* C Compiler: Version 14.0.0 (at /usr/bin/clang)
* C++ Compiler: Version 14.0.0 (at /usr/bin/clang++)
- backported by
-
JDK-8335754 sprintf is deprecated in Xcode 14
- Resolved
- relates to
-
JDK-8299378 sprintf is deprecated in Xcode 14
- Resolved
-
JDK-8301274 update for deprecated sprintf for security components
- Resolved
-
JDK-8336291 [11u] update for deprecated sprintf for jdk.pack
- New
-
JDK-8299635 Hotspot update for deprecated sprintf in Xcode 14
- Resolved
-
JDK-8301132 Test update for deprecated sprintf in Xcode 14
- Resolved
-
JDK-8301279 update for deprecated sprintf for management components
- Resolved
-
JDK-8302495 update for deprecated sprintf for java.desktop
- Resolved
-
JDK-8303527 update for deprecated sprintf for jdk.hotspot.agent
- Resolved
-
JDK-8303617 update for deprecated sprintf for jdk.jdwp.agent
- Resolved
-
JDK-8303830 update for deprecated sprintf for jdk.accessibility
- Resolved
-
JDK-8307848 update for deprecated sprintf for jdk.attach
- Resolved
-
JDK-8307850 update for deprecated sprintf for jdk.jdi
- Resolved
-
JDK-8307855 update for deprecated sprintf for src/utils
- Resolved
-
JDK-8308022 update for deprecated sprintf for java.base
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/123b973a
-
Commit openjdk/jdk/478ef389
-
Review openjdk/jdk17u-dev/1930
-
Review openjdk/jdk17u-dev/2662
-
Review openjdk/jdk/11115
-
Review(master) openjdk/jdk11u-dev/2836