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

allocate "reserved_size" extra memory #185

Open
HiromichiMatsumura opened this issue Dec 18, 2023 · 0 comments
Open

allocate "reserved_size" extra memory #185

HiromichiMatsumura opened this issue Dec 18, 2023 · 0 comments

Comments

@HiromichiMatsumura
Copy link

Hello,

I've tried to implement the current version of lodepng into an embedded system.
I have a question.

In the "inflateHuffmanBlock" function, it resizes the memory size with reference to the "reserved_size (260)" value.
Therefore, I believe it would be better to allocate "reserved_size" extra memory in the "zlib_decompress" function.
Would this pose any problems?

I would appreciate it if you could reply.

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

1 participant