mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-13 01:32:18 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
98b173928a
commit
e144707520
|
@ -4093,8 +4093,8 @@ _set_blocks_max(PyObject *self, PyObject *args) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((unsigned long)blocks_max > SIZE_MAX /
|
if ((unsigned long)blocks_max >
|
||||||
sizeof(ImagingDefaultArena.blocks_pool[0])) {
|
SIZE_MAX / sizeof(ImagingDefaultArena.blocks_pool[0])) {
|
||||||
PyErr_SetString(PyExc_ValueError, "blocks_max is too large");
|
PyErr_SetString(PyExc_ValueError, "blocks_max is too large");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user