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

Fix for writing Tiff to BytesIO using libtiff #2263

Merged
merged 2 commits into from
Dec 9, 2016

Conversation

wiredfool
Copy link
Member

Fixes #2206 .

Writing large tiff images using libtiff to a BytesIO would fail if there was a need to increase the memory buffer size. This would not happen in the case of a file, since the file pointer was passed into libtiff for direct writing.

The overflow check for buffer size had a sign error, so that any comparison was against a negative number, so it failed every attempt to realloc.

@wiredfool wiredfool added Bug Any unexpected behavior, until confirmed feature. TIFF labels Nov 29, 2016
@hugovk hugovk merged commit e83479e into python-pillow:master Dec 9, 2016
@wiredfool wiredfool deleted the tiff_bytesio branch October 2, 2017 13:27
@radarhere radarhere changed the title Fix for writing Tiff to BytesIO using libtiff. Fix for writing Tiff to BytesIO using libtiff Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature. TIFF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants