[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-07-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #14 from Martin Sebor --- Author: msebor Date: Wed Jul 18 17:20:05 2018 New Revision: 262859 URL: https://gcc.gnu.org/viewcvs?rev=262859=gcc=rev Log: Backport from trunk. PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-07-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-06-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #12 from Martin Sebor --- Author: msebor Date: Tue Jun 19 22:35:45 2018 New Revision: 261774 URL: https://gcc.gnu.org/viewcvs?rev=261774=gcc=rev Log: PR middle-end/85602 - -Warray-bounds fails to detect the out of bound array access

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-06-19 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #11 from seurer at gcc dot gnu.org --- It is fixed now. Thanks!

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-06-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #9 from Martin Sebor --- Thanks, r261751 should take care of it. --- Comment #10 from Martin Sebor --- Author: msebor Date: Tue Jun 19 17:30:47 2018 New Revision: 261751 URL: https://gcc.gnu.org/viewcvs?rev=261751=gcc=rev Log:

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-06-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #9 from Martin Sebor --- Thanks, r261751 should take care of it.

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-06-19 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 seurer at gcc dot gnu.org changed: What|Removed |Added CC||seurer at gcc dot gnu.org

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-06-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #7 from Martin Sebor --- Adjusted patch committed into trunk in r261718.

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-06-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #6 from Martin Sebor --- Author: msebor Date: Mon Jun 18 22:17:57 2018 New Revision: 261718 URL: https://gcc.gnu.org/viewcvs?rev=261718=gcc=rev Log: PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-05-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #5 from Martin Sebor

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-05-14 Thread eggert at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #4 from Paul Eggert --- Thanks, that workaround is much better for coreutils, and I installed it here: https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=f6cb50cc991d461f443ea3afc517c9e1e37ef496

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-05-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #3 from Martin Sebor --- I agree that's not an improvement. Would something like this be better? (at least until utmp_ent is marked nonstring and GCC taught to suppress the diagnostic) size_t utmpsize = sizeof UT_ID (utmp_ent);

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-05-14 Thread eggert at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 --- Comment #2 from Paul Eggert --- Thanks for looking into it. For what it's worth, the practical effect of this new warning was that I changed that part of coreutils to not use strncat, causing 3 lines of code to grow to 8 lines. See the end

[Bug middle-end/85602] -Wsizeof-pointer-memaccess for strncat with size of source

2018-05-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85602 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|