[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2023-06-07 Thread yinyuefengyi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
Bug 88781 depends on bug 110151, which changed state.

Bug 110151 Summary: warning: 'strncpy' output truncated copying 10 bytes from a 
string of length 26 [-Wstringop-truncation]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110151

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2021-08-12 Thread quentin at armitage dot org.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
Bug 88781 depends on bug 101451, which changed state.

Bug 101451 Summary: Incorrect -Wstringop-truncation warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |---

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2021-08-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
Bug 88781 depends on bug 101451, which changed state.

Bug 101451 Summary: Incorrect -Wstringop-truncation warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |INVALID

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2021-05-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
Bug 88781 depends on bug 89644, which changed state.

Bug 89644 Summary: [8 Regression] false-positive -Warray-bounds on strncpy with 
unterminated array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89644

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2021-03-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
Bug 88781 depends on bug 99489, which changed state.

Bug 99489 Summary: [11 Regression] internal compiler error: during GIMPLE pass: 
strlen in dlt_logstorage_log_file_name()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99489

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2020-02-12 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
Bug 88781 depends on bug 93646, which changed state.

Bug 93646 Summary: confusing -Wstringop-truncation on strncat where 
-Wstringop-overflow is expected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93646

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2019-02-12 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781
Bug 88781 depends on bug 89312, which changed state.

Bug 89312 Summary: snprintf warning is unparsable and not confusing
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89312

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2019-01-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781

Martin Sebor  changed:

   What|Removed |Added

Version|9.0 |8.0

--- Comment #1 from Martin Sebor  ---
-Wstringop-truncation was first introduced in GCC 8.

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2019-01-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-01-09
 Depends on||88780, 87383, 86764, 85902,
   ||85650, 84732, 84624, 84561,
   ||84398, 84397, 84396, 84395,
   ||82944, 87028, 85728, 85700,
   ||85643, 84649, 84480, 84474,
   ||84468, 84228
 Ever confirmed|0   |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82944
[Bug 82944] missing -Wstringop-truncation on strncpy due to system header macro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84228
[Bug 84228] Bogus -Wstringop-truncation warning with -g
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84395
[Bug 84395] -Wstringop-truncation where -Wstringop-overflow is expected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84396
[Bug 84396] missing -Wstringop-truncation with non-nul assignment to
destination
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84397
[Bug 84397] missing -Wstringop-truncation on strncpy into a multidimensional
array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84398
[Bug 84398] missing -Wstringop-truncation on strncpy into VLA and dynamically
allocated arrays
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468
[Bug 84468] [8 Regression] bogus -Wstringop-truncation despite assignment after
conditional strncpy
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84474
[Bug 84474] Unexpected -Wstringop-truncation on strncpy with string literal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84480
[Bug 84480] [8 Regression] bogus -Wstringop-truncation despite assignment with
an inlined string literal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84561
[Bug 84561] -Wstringop-truncation with -O2 depends on strncpy's size type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84624
[Bug 84624] bogus -Wstringop-truncation in a catch statement and nul assignment
outside it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84649
[Bug 84649] -Wstringop-truncation shouldn't warn on strncat() when 2nd argument
is a char array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84732
[Bug 84732] false-positive -Wstringop-truncation warning with
-fsanitize-coverage=trace-pc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85643
[Bug 85643] attribute nonstring fails to squash -Wstringop-truncation warning
at an offset
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85650
[Bug 85650] Additional warnings when -fsanitize=undefined is used with
-Wstringop-truncation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85700
[Bug 85700] Spurious -Wstringop-truncation warning with strncat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85728
[Bug 85728] strncpy -Wstringop-truncation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85902
[Bug 85902] -Wstringop-truncation false-positive
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86764
[Bug 86764] missing -Wstringop-truncation writing to the last array member
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87028
[Bug 87028] false positive -Wstringop-truncation strncpy with global variable
source string
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87383
[Bug 87383] improve text and detail in -Wstringop-truncation warnings
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88780
[Bug 88780] bogus -Wstringop-truncation for copying as many bytes from a string
as its length