mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-07 10:54:14 +03:00
add check for positive xsize/ysize in ImagingFliDecode
This commit is contained in:
parent
731bcda904
commit
cf4fe7f68b
|
@ -62,6 +62,10 @@ ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t byt
|
|||
state->errcode = IMAGING_CODEC_UNKNOWN;
|
||||
return -1;
|
||||
}
|
||||
if (state->xsize <= 0 || state->ysize <= 0) {
|
||||
state->errcode = IMAGING_CODEC_CONFIG;
|
||||
return -1;
|
||||
}
|
||||
|
||||
chunks = I16(ptr + 6);
|
||||
ptr += 16;
|
||||
|
|
Loading…
Reference in New Issue
Block a user