Re: [PING] [PATCH] enhance buffer overflow warnings (and c/53562)

2016-12-07 Thread Martin Sebor
+ /* An anti-range implies the original variable is signed and + its lower bound is negative and the upper bound positive. + Since that means that the expression's value could be zero + nothing interesting can be inferred from this. */ I'm not sure I agree with this

Re: [PING] [PATCH] enhance buffer overflow warnings (and c/53562)

2016-12-07 Thread Jeff Law
On 11/09/2016 03:49 PM, Martin Sebor wrote: gcc-53562.diff PR c/53562 - Add -Werror= support for -D_FORTIFY_SOURCE / __builtin___memcpy_chk PR middle-end/77784 - duplicate warning for snprintf when n > object size PR middle-end/78149 - missing warning on strncpy buffer overflow due to an ex

[PING] [PATCH] enhance buffer overflow warnings (and c/53562)

2016-11-09 Thread Martin Sebor
The attached minor update to the patch also resolves bug 77784 that points out that -Wformat-length issues a warning also issued during the expansion of some of the __builtin___sprintf_chk intrinsics. Martin On 11/04/2016 02:16 PM, Martin Sebor wrote: Attached is an update to the patch that tak