mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-19 13:54:18 +03:00
Merge pull request #8408 from radarhere/fli
This commit is contained in:
commit
0314bb3331
|
@ -224,7 +224,7 @@ ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t byt
|
|||
break;
|
||||
case 16:
|
||||
/* COPY chunk */
|
||||
if (INT32_MAX / state->xsize < state->ysize) {
|
||||
if (INT32_MAX < (uint64_t)state->xsize * state->ysize) {
|
||||
/* Integer overflow, bail */
|
||||
state->errcode = IMAGING_CODEC_OVERRUN;
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user