public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/106000] New: RFE: -fanalyzer should complain about definite buffer overflows/underflows
@ 2022-06-16 12:59 dmalcolm at gcc dot gnu.org
  2022-06-16 13:31 ` [Bug analyzer/106000] " Painololo at protonmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-06-16 12:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106000
           Summary: RFE: -fanalyzer should complain about definite buffer
                    overflows/underflows
           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
            Blocks: 105887
  Target Milestone: ---

I attempted to implement buffer-overflow (and underflow) detection for GCC 12,
trying to categorize all region accesses as either:
(a) definitely in-bounds
(b) definitely out-of-bounds
(c) possibly out-of-bounds

Unfortunately my implementation led to a "wall of noise" level of warnings from
(c).  It now strikes me that we could at least implement warnings for (b) -
where we can see definite problems, and that this might be at least somewhat
useful.

Compare with:
 
https://clang.llvm.org/docs/analyzer/checkers.html#alpha-security-arraybound-c
 
https://clang.llvm.org/docs/analyzer/checkers.html#alpha-security-arrayboundv2-c


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105887
[Bug 105887] [meta-bug] clang analyzer warnings that GCC's -fanalyzer could
implement

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

end of thread, other threads:[~2023-04-07 12:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 12:59 [Bug analyzer/106000] New: RFE: -fanalyzer should complain about definite buffer overflows/underflows dmalcolm at gcc dot gnu.org
2022-06-16 13:31 ` [Bug analyzer/106000] " Painololo at protonmail dot com
2022-06-16 13:49 ` dmalcolm at gcc dot gnu.org
2022-07-01 14:34 ` [Bug analyzer/106000] RFE: -fanalyzer should complain about memory accesses that are definitely out-of-bounds dmalcolm at gcc dot gnu.org
2022-07-02 10:07 ` dmalcolm at gcc dot gnu.org
2022-07-03 19:44 ` dmalcolm at gcc dot gnu.org
2022-08-12  9:14 ` cvs-commit at gcc dot gnu.org
2022-10-06 20:01 ` dmalcolm at gcc dot gnu.org
2023-04-07 12:40 ` 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).