public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/106235] New: RFE: -fanalyzer could complain about tainted data triggering assertion failure
@ 2022-07-08 13:55 dmalcolm at gcc dot gnu.org
  2022-07-08 13:57 ` [Bug analyzer/106235] " dmalcolm at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-07-08 13:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106235
           Summary: RFE: -fanalyzer could complain about tainted data
                    triggering assertion failure
           Product: gcc
           Version: 12.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: ---

CWE-617: Reachable Assertion:
  https://cwe.mitre.org/data/definitions/617.html
"The product contains an assert() or similar statement that can be triggered by
an attacker, which leads to an application exit or other behavior that is more
severe than necessary."

(e.g. remote triggering of denial-of-service)


Perhaps -fanalyzer could identify assertion failure routines, and see if
tainted data is used in an assertion.  Presumably we'd want to see if a
conditional guarding an assertion handler involves tainted data.

Not sure if this is fully implementable; e.g. what to do about non-trivial
conditionals?  (and how much can we reconstruct about "is this an assertion" vs
"is this a regular conditional" given how late we run)

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

end of thread, other threads:[~2022-11-28 22:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08 13:55 [Bug analyzer/106235] New: RFE: -fanalyzer could complain about tainted data triggering assertion failure dmalcolm at gcc dot gnu.org
2022-07-08 13:57 ` [Bug analyzer/106235] " dmalcolm at gcc dot gnu.org
2022-11-13 20:41 ` dmalcolm at gcc dot gnu.org
2022-11-13 23:00 ` cvs-commit at gcc dot gnu.org
2022-11-13 23:06 ` dmalcolm at gcc dot gnu.org
2022-11-28 22:19 ` pinskia 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).