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

memory corruption loading files from pngsuite #2

Open
3b opened this issue Aug 28, 2017 · 0 comments
Open

memory corruption loading files from pngsuite #2

3b opened this issue Aug 28, 2017 · 0 comments

Comments

@3b
Copy link

3b commented Aug 28, 2017

http://www.schaik.com/pngsuite/tbbn0g04.png gets an alpha channel due to (png-set-expand png-ptr), but only 1 channel is allocated in the make-image call, so png-read-image writes past the end of the array.

Also, depending on options and file, both png-set-expand and png-set-strip-alpha are called, and the docs say

If you specify a contradictory set of transformations, for example both adding and removing the alpha channel, you cannot predict the final result.

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