-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
fix or drop zipOpen2/unzOpen2 #566
Comments
nmoinvaz
added a commit
that referenced
this issue
May 8, 2021
I have implemented the ioapi support. Only thing missing is wide-character ioapi support for Windows. If somebody really cares about that they can figure it out themselves. |
my very old code was
If I remember, that was for WINRT which was not compatible with Ansi API.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zipOpen2 and unzOpen2 currently cast a zlib_filefunc_def* to mz_stream_vtbl*
Since those structs contain different functions with different parameters in a different order, this will crash the calling application at best and corrupt data (unzOpen2 actually calling into a function that opens the file for writing) at worst.
The functions should either be implemented in a compatible way, or at least removed so users don't think this is going to work before actually running into something that calls the functions.
The text was updated successfully, but these errors were encountered: