mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Actually check the framesize in FliDecode.
This commit is contained in:
parent
99940765b2
commit
8f300af691
|
@ -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