RFR: 8252407: Build failure with gcc-8+ and asan.
eric.1iu
github.com+10482586+erik1iu at openjdk.java.net
Mon Oct 12 11:43:20 UTC 2020
Summary: Fix stringop-truncation warnings casused by gcc.
The newer gcc(gcc-8 or higher) would warn for calls to bounded string
manipulation functions such as 'strncpy' that may either truncate the
copied string or leave the destination unchanged.
The reason is that -fsanitize=address might simply incompatible with
-Wstringop-truncation. This patch disables stringop-truncation warning
when asan enabled, also disables the defining of _FORTIFY_SOURCE in
fastdebug builds for some potential risks.
-------------
Commit messages:
- 8252407: Build failure with gcc-8+ and asan.
Changes: https://git.openjdk.java.net/jdk/pull/607/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=607&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8252407
Stats: 12 lines in 2 files changed: 10 ins; 1 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/607.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/607/head:pull/607
PR: https://git.openjdk.java.net/jdk/pull/607
More information about the build-dev
mailing list