Closed shinyano closed 4 weeks ago
Hi,
I noticed that there is a file pointer fpOutCD in method unzRepair in file mztool.c which is not closed properly at the end. https://github.com/madler/zlib/blob/0f51fb4933fc9ce18199cb2554dacea8033e7fd3/contrib/minizip/mztools.c#L35-L40
fpOutCD
unzRepair
mztool.c
In line 37 it is initialized with fopen. But if program goes into the else branch, it never gets closed.
fopen
else
All of the files are flushed and closed when the program exits.
Hi,
I noticed that there is a file pointer
fpOutCD
in methodunzRepair
in filemztool.c
which is not closed properly at the end. https://github.com/madler/zlib/blob/0f51fb4933fc9ce18199cb2554dacea8033e7fd3/contrib/minizip/mztools.c#L35-L40In line 37 it is initialized with
fopen
. But if program goes into theelse
branch, it never gets closed.