[Bug c/67729] -Wformat should warn for %Ns where the buffer size is known to be less than N in size

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 14 04:59:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67729

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-01-14
            Summary|scanf is missing buffer     |-Wformat should warn for
                   |length sanity check ?       |%Ns where the buffer size
                   |                            |is known to be less than N
                   |                            |in size
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.


More information about the Gcc-bugs mailing list