[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2019-09-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #24 from Martin Sebor --- *** Bug 54582 has been marked as a duplicate of this bug. ***

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2017-05-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 Martin Sebor changed: What|Removed |Added CC||bugzilla@poradnik-webmaster

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-09-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #22 from Martin Sebor --- I've raised bug 77683 for the ICE on %lf.

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-09-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 Martin Sebor changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-09-21 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 David Binderman changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-09-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-09-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #18 from Martin Sebor --- Author: msebor Date: Wed Sep 21 01:39:27 2016 New Revision: 240298 URL: https://gcc.gnu.org/viewcvs?rev=240298=gcc=rev Log: PR middle-end/49905 - Better sanity checking on sprintf src & dest to

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #17 from Martin Sebor --- I have tweaked the patch to print the following for the test case in comment #13: xyz.c: In function ‘f’: xyz.c:10:46: warning: ‘%+03d’ directive output may be truncated between ‘3’ and ‘9’ bytes into a

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #16 from Martin Sebor --- (In reply to Jakub Jelinek from comment #14) > But 9 is maximum length just for the %+03d part, %02d with the limited VRP > range is exactly 2 and then the '\0', so that is 12 maximum, 6 minimum. Yes. > So

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #15 from Martin Sebor --- (In reply to David Binderman from comment #11) > BTW, I tried a Linux kernel build and got this > > drivers/char/ipmi/ipmi_msghandler.c: In function ‘guid_show’: >

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #14 from Jakub Jelinek --- (In reply to Martin Sebor from comment #13) > (In reply to David Binderman from comment #9) > > I tried a build of the gcc fortran compiler and I found this warning: > > > >

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #13 from Martin Sebor --- (In reply to David Binderman from comment #9) > I tried a build of the gcc fortran compiler and I found this warning: > > ../../../src/trunk/libgfortran/intrinsics/date_and_time.c:173:33: warning: > ‘%+03d’

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #12 from David Binderman --- (In reply to David Binderman from comment #11) > So it looks to me like format %Lx isn't handled. Also, %lf seems to cause a crash.

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #11 from David Binderman --- (In reply to Jakub Jelinek from comment #10) > I think the warning code should compute both > minimum and maximum, I'd be happy for the code to compute minimum only and have maximum postponed for the

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #10 from Jakub Jelinek --- (In reply to David Binderman from comment #9) > I tried a build of the gcc fortran compiler and I found this warning: > > ../../../src/trunk/libgfortran/intrinsics/date_and_time.c:173:33: warning: >

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-04 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #9 from David Binderman --- I tried a build of the gcc fortran compiler and I found this warning: ../../../src/trunk/libgfortran/intrinsics/date_and_time.c:173:33: warning: ‘%+03d’ directive output truncated while writing ‘9’ bytes

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-01 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #8 from David Binderman --- (In reply to Martin Sebor from comment #7) > Patch posted for review: > https://gcc.gnu.org/ml/gcc-patches/2016-07/msg00056.html Fascinating stuff. Thanks. I'll give it a good going over by throwing

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-07-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #7 from Martin Sebor --- Patch posted for review: https://gcc.gnu.org/ml/gcc-patches/2016-07/msg00056.html

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-06-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-05-03 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #5 from David Binderman --- (In reply to Martin Sebor from comment #3) > 5.1 and 6.1 warn on the first six out of the ten buffer overflows, and on > Linux the program aborts at runtime in __sprintf_chk. > > GCC still doesn't

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-05-03 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #4 from David Binderman --- Created attachment 38402 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38402=edit C++ source code

[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

2016-05-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/49905] Better sanity checking on sprintf src dest to produce warning for dodgy code ?

2011-08-04 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 --- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org 2011-08-04 07:40:29 UTC --- Author: jakub Date: Thu Aug 4 07:40:24 2011 New Revision: 177316 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=177316 Log: PR middle-end/49905

[Bug middle-end/49905] Better sanity checking on sprintf src dest to produce warning for dodgy code ?

2011-07-29 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49905 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot