Re: RFR: 8252407: Build failure with gcc-8+ and asan.

2020-10-12 Thread eric . 1iu
On Mon, 12 Oct 2020 13:49:52 GMT, Kim Barrett wrote: >> 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 des

Re: RFR: 8252407: Build failure with gcc-8+ and asan.

2020-10-12 Thread Kim Barrett
On Mon, 12 Oct 2020 11:36:17 GMT, eric.1iu wrote: > 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 destinatio

Re: RFR: 8252407: Build failure with gcc-8+ and asan.

2020-10-12 Thread Magnus Ihse Bursie
On Mon, 12 Oct 2020 11:36:17 GMT, eric.1iu wrote: > 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 destinatio

Re: RFR: 8252407: Build failure with gcc-8+ and asan.

2020-10-12 Thread eric . 1iu
On Mon, 12 Oct 2020 11:36:17 GMT, eric.1iu wrote: > 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 destinatio

RFR: 8252407: Build failure with gcc-8+ and asan.

2020-10-12 Thread eric . 1iu
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 simpl