Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
awinatri opened this issue Oct 9, 2023 · 3 comments

Comments

@awinatri
Copy link

awinatri commented Oct 9, 2023

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
Copy link

@madler: Can you look this ticket?

1 similar comment
@Neustradamus
Copy link

@madler: Can you look this ticket?

@dbjh
Copy link

dbjh commented Feb 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants