public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/107017] New: RFE: support printf-style formatted functions in -fanalyzer
@ 2022-09-23 13:00 dmalcolm at gcc dot gnu.org
  2023-02-01 16:00 ` [Bug analyzer/107017] " dmalcolm at gcc dot gnu.org
  2023-03-13 14:20 ` dmalcolm at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-09-23 13:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107017
           Summary: RFE: support printf-style formatted functions in
                    -fanalyzer
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

We currently have some support for parsing the insides of a printf-style format
string in two places:
* gcc/c-family/c-format.cc: implements -Wformat in the C/C++ frontends, doing
type-checking on format strings against their arguments
* gcc/gimple-ssa-sprintf.cc: implements parts of -Wformat_overflow=,
-Wformat_truncation=, and -Wrestrict.

Now that the analyzer has -Wanalyzer-out-of-bounds, it might be good to
generalize this format-string parsing so that the analyzer can reuse it, and do
similar range analysis (but with the analyzer's more precise path-sensitive
interprocedural approach)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug analyzer/107017] RFE: support printf-style formatted functions in -fanalyzer
  2022-09-23 13:00 [Bug analyzer/107017] New: RFE: support printf-style formatted functions in -fanalyzer dmalcolm at gcc dot gnu.org
@ 2023-02-01 16:00 ` dmalcolm at gcc dot gnu.org
  2023-03-13 14:20 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-02-01 16:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should probably also handle scanf-style functions.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug analyzer/107017] RFE: support printf-style formatted functions in -fanalyzer
  2022-09-23 13:00 [Bug analyzer/107017] New: RFE: support printf-style formatted functions in -fanalyzer dmalcolm at gcc dot gnu.org
  2023-02-01 16:00 ` [Bug analyzer/107017] " dmalcolm at gcc dot gnu.org
@ 2023-03-13 14:20 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-03-13 14:20 UTC (permalink / raw)
  To: gcc-bugs

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |geoffreydgr at icloud dot com

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
*** Bug 109106 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-13 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 13:00 [Bug analyzer/107017] New: RFE: support printf-style formatted functions in -fanalyzer dmalcolm at gcc dot gnu.org
2023-02-01 16:00 ` [Bug analyzer/107017] " dmalcolm at gcc dot gnu.org
2023-03-13 14:20 ` dmalcolm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).