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

Actually check the framesize in FliDecode.c #5659

Merged
merged 1 commit into from Sep 5, 2021

Conversation

wiredfool
Copy link
Member

FliDecode.c had a check in the head of the frame where it was checking a variable against the value that was just set.

This updates the check to check the bytes in the buffer vs the framesize.

Note that there are potentially single bytes of padding, such that all the sizes should be even. This isn't necessarily reflected in the file size (e.g. hopper.fli) especially on the last chunk.

@wiredfool wiredfool changed the title Actually check the framesize in FliDecode. Actually check the framesize in FliDecode.c Aug 8, 2021
@hugovk hugovk merged commit 65b5f91 into python-pillow:master Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants