mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Merge pull request #5659 from wiredfool/fli_framesize
This commit is contained in:
commit
65b5f91b60
|
@ -46,7 +46,8 @@ ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t byt
|
|||
ptr = buf;
|
||||
|
||||
framesize = I32(ptr);
|
||||
if (framesize < I32(ptr)) {
|
||||
// there can be one pad byte in the framesize
|
||||
if (bytes + (bytes % 2) < framesize) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user