[Bug middle-end/79275] -Wformat-overflow false positive exceeding INT_MAX in glibc sysdeps/posix/tempname.c

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 30 02:09:00 GMT 2017


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-01-30
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning is overly aggressive and uses the upper bound of the precision
range as the likely number of bytes output by the directive.

Testing a patch that relaxes the checker to use the lower bound at level 1
instead.


More information about the Gcc-bugs mailing list