madler / zlib

A massively spiffy yet delicately unobtrusive compression library.
http://zlib.net/
Other
5.57k stars 2.43k forks source link

change in behavior after updating unzOpen to unzOpen2_64 (unzip.c) function. #864

Open awinatri opened 11 months ago

awinatri commented 11 months ago

earlier code snippet (C++/windows): { CFileException fe; CStdioFile fileTest; fileTest.Open(zipfilename, CFile:modeReadWrite | CFile::shareDenyWrite, &fe); // additional code

unzFile uf = unzOpen(zipfilename); // function call succeed }

update code that is not working: { CFileException fe; CStdioFile fileTest; fileTest.Open(zipfilename, CFile:modeReadWrite | CFile::shareDenyWrite, &fe); // additional code

zlib_filefunc64_def ffunc; fill_win32_filefunc64W(&ffunc); uf = unzOpe2_64(zipfilename, & ffunc); //function call fails }

Neustradamus commented 10 months ago

@madler: Can you look this ticket?

Neustradamus commented 7 months ago

@madler: Can you look this ticket?

dbjh commented 6 months ago

I may be reading this wrong, but from https://github.com/madler/zlib/blob/develop/FAQ#L344:

  1. I'm having a problem with the zip functions in zlib, can you help?

    There are no zip functions in zlib. You are probably using minizip by Giles Vollant, which is found in the contrib directory of zlib. It is not part of zlib. In fact none of the stuff in contrib is part of zlib. The files in there are not supported by the zlib authors. You need to contact the authors of the respective contribution for help.

If I then check https://github.com/madler/zlib/blob/develop/contrib/minizip/unzip.c#L5:

Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )

Apart from contacting him through the means listed on that web page, you can also try contacting him here on GitHub: https://github.com/gvollant.