public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/110520] New: -Wanalyzer-null-dereference false nagetive with `*ptr = 10086`
@ 2023-07-02 12:30 dale.mengli.ming at proton dot me
  2023-09-06 21:37 ` [Bug analyzer/110520] " dmalcolm at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dale.mengli.ming at proton dot me @ 2023-07-02 12:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110520
           Summary: -Wanalyzer-null-dereference false nagetive with `*ptr
                    = 10086`
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dale.mengli.ming at proton dot me
  Target Milestone: ---

Hi,in this case (https://godbolt.org/z/4Md3o94Gx), the `ptr` is a null pointer,
but the analyzer doesn't report an NPD with it. When `__builtin_strlen(buf) ==
0` (https://godbolt.org/z/fnbMY9W5z), the analyzer reports that.

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

end of thread, other threads:[~2024-02-19 23:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-02 12:30 [Bug analyzer/110520] New: -Wanalyzer-null-dereference false nagetive with `*ptr = 10086` dale.mengli.ming at proton dot me
2023-09-06 21:37 ` [Bug analyzer/110520] " dmalcolm at gcc dot gnu.org
2023-10-25  8:18 ` dale.mengli.ming at proton dot me
2024-02-19 23:10 ` [Bug analyzer/110520] -Wanalyzer-null-dereference false negative " cvs-commit at gcc dot gnu.org
2024-02-19 23:15 ` 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).