Merge pull request #8402 from radarhere/sgirle

This commit is contained in:
Hugo van Kemenade 2024-10-01 13:52:08 +03:00 committed by GitHub
commit 747fdf5069
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }