mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-15 06:07:33 +03:00
Merge pull request #8402 from radarhere/sgirle
This commit is contained in:
commit
747fdf5069
|
@ -183,7 +183,7 @@ ImagingSgiRleDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t
|
||||||
each with 4 bytes per element of tablen
|
each with 4 bytes per element of tablen
|
||||||
Check here before we allocate any memory
|
Check here before we allocate any memory
|
||||||
*/
|
*/
|
||||||
if (c->bufsize < 8 * c->tablen) {
|
if (c->bufsize < 8 * (int64_t)c->tablen) {
|
||||||
state->errcode = IMAGING_CODEC_OVERRUN;
|
state->errcode = IMAGING_CODEC_OVERRUN;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user