Skip to content

Fix win32/s390x for PR4641#6

Merged
wiredfool merged 3 commits intowiredfool:4641_rebasefrom
nulano:4641_rebase
Jan 10, 2021
Merged

Fix win32/s390x for PR4641#6
wiredfool merged 3 commits intowiredfool:4641_rebasefrom
nulano:4641_rebase

Conversation

@nulano
Copy link
Copy Markdown

@nulano nulano commented Jan 9, 2021

Fixes stack corruption in python-pillow#5178

TIFFTAG_PLANARCONFIG is a uint16 value, reading it into UINT8 corrupts the state pointer (on win32). Big-endian was most likely the same issue.

Also change memset(unpackers, 0, sizeof(ImagingShuffler *) * 4); to memset(unpackers, 0, sizeof(ImagingShuffler) * 4); since it seems to be a typo (ImagingShuffler is already a pointer).

@wiredfool wiredfool merged commit 2e4cbc7 into wiredfool:4641_rebase Jan 10, 2021
@nulano nulano deleted the 4641_rebase branch January 10, 2021 18:27
wiredfool pushed a commit that referenced this pull request Nov 3, 2022
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

Successfully merging this pull request may close these issues.

2 participants