[Bug tree-optimization/79376] wrong lower bound with %s and non-constant strings in -Wformat-overflow

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 4 17:25:00 GMT 2017


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, wrong-code
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-04
           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 root cause of this bug is a "thinko" in the get_range_strlen() function in
gimple-fold.c that, although it tries to deal with this case, allows the lower
bound to be set by subsequent iterations/recursive calls to the function.


More information about the Gcc-bugs mailing list