[Bug analyzer/93032] New: analyzer fails to detect FILE * leak in zlib/contrib/minizip/mztools.c
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 20 17:34:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93032
Bug ID: 93032
Summary: analyzer fails to detect FILE * leak in
zlib/contrib/minizip/mztools.c
Product: gcc
Version: analyzer branch
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: dmalcolm at gcc dot gnu.org
Target Milestone: ---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58237#c6 notes that:
> I tried out recent cppcheck on recent gcc trunk and found these resource
> leaks:
>
[...]
> trunk/zlib/contrib/minizip/mztools.c:290:3: error: Resource leak: fpOutCD
> [resourceLeak]
>
[...]
>
> Last one has a missing sanity check for fpOutCD != NULL, but since
> it is in a /contrib/ directory, it won't get fixed here.
Unfortunately, the analyzer doesn't yet report this.
More information about the Gcc-bugs
mailing list