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

mz_stream_mem_set_buffer doesn't support memory buffers larger than 32 bit integer #744

Open
san-zemotion opened this issue Nov 22, 2023 · 1 comment
Labels
help wanted Need outside help

Comments

@san-zemotion
Copy link

In Minizip-ng, the mz_stream_mem_set_buffer function accepts the buffer size as a 32-bit integer, as shown in the signature below. This limitation causes a failure in mz_zip_reader_open when handling memory buffers larger than the maximum value representable by a 32-bit integer. Is there a recommended workaround for processing large memory buffers, or are there plans to support larger sizes in future releases?

Signature:
void mz_stream_mem_set_buffer(void *stream, void *buf, int32_t size);

@nmoinvaz
Copy link
Member

Thanks for the report. Feel free to open a PR if it bugs 🐞 you.

@nmoinvaz nmoinvaz added the help wanted Need outside help label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need outside help
Projects
None yet
Development

No branches or pull requests

2 participants