public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/114791] New: analyzer: file-leak not detected
@ 2024-04-21  5:38 urs at akk dot org
  2024-04-21  5:39 ` [Bug analyzer/114791] " urs at akk dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: urs at akk dot org @ 2024-04-21  5:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114791
           Summary: analyzer: file-leak not detected
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: urs at akk dot org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

Created attachment 57998
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57998&action=edit
minimal test case

False negative -Wanalyzer-file-leak

gcc build from git @ ef2392236ec629351496d7f299d6a0956080e4d9

gcc-14 -D_DEFAULT_SOURCE -Wall -Wextra -fanalyzer -O2 -v -save-temps
-freport-bug -g -std=c11 -o fleak file-leak.c

doesn't give a warning but it should (value of fp may be overwritten before
released).

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

end of thread, other threads:[~2024-04-21  6:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-21  5:38 [Bug analyzer/114791] New: analyzer: file-leak not detected urs at akk dot org
2024-04-21  5:39 ` [Bug analyzer/114791] " urs at akk dot org
2024-04-21  5:45 ` pinskia at gcc dot gnu.org
2024-04-21  5:47 ` urs at akk dot org
2024-04-21  5:54 ` pinskia at gcc dot gnu.org
2024-04-21  6:59 ` urs at akk dot 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).