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)

Reply via email to