public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/105898] New: RFE: -fanalyzer should complain about overlapping args to memcpy and mempcpy
@ 2022-06-08 14:56 dmalcolm at gcc dot gnu.org
  2022-06-08 17:54 ` [Bug analyzer/105898] " egallager at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-06-08 14:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105898
           Summary: RFE: -fanalyzer should complain about overlapping args
                    to memcpy and mempcpy
           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: ---

See:
 
https://clang.llvm.org/docs/analyzer/checkers.html#alpha-unix-cstring-bufferoverlap-c

Seems fairly easy to detect the "definitely overlaps" case with the region
model.


Referenced Bugs:

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

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

end of thread, other threads:[~2024-02-26 18:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 14:56 [Bug analyzer/105898] New: RFE: -fanalyzer should complain about overlapping args to memcpy and mempcpy dmalcolm at gcc dot gnu.org
2022-06-08 17:54 ` [Bug analyzer/105898] " egallager at gcc dot gnu.org
2022-07-02 19:23 ` tlange at gcc dot gnu.org
2022-08-12 13:02 ` tlange at gcc dot gnu.org
2024-02-22 15:27 ` dmalcolm at gcc dot gnu.org
2024-02-26 18:09 ` [Bug analyzer/105898] RFE: -fanalyzer should complain about overlapping args to mempcpy, wmemcpy, and wmempcpy egallager 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).