[Bug analyzer/115736] Analyzer is sensitive to printf argument (or puts does not warn) for -Wanalyzer-unsafe-call-within-signal-handler

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 1 21:48:36 GMT 2024


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Analyzer is sensitive to    |Analyzer is sensitive to
                   |printf argument for         |printf argument (or puts
                   |-Wanalyzer-unsafe-call-with |does not warn) for
                   |in-signal-handler           |-Wanalyzer-unsafe-call-with
                   |                            |in-signal-handler
   Last reconfirmed|                            |2024-07-01
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |diagnostic
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely puts is not on the list of unsafe functions.
That is GCC changes `printf("uh\n");` into `puts("uh");` early on before
Analyzer .

Confirmed.


More information about the Gcc-bugs mailing list