mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Merge pull request #5958 from radarhere/memory
This commit is contained in:
commit
5a35e87e65
|
@ -57,7 +57,7 @@ alloc_array(Py_ssize_t count) {
|
|||
if ((unsigned long long)count > (SIZE_MAX / (2 * sizeof(double))) - 1) {
|
||||
return ImagingError_MemoryError();
|
||||
}
|
||||
xy = calloc(2 * count * sizeof(double) + 1, sizeof(double));
|
||||
xy = calloc(2 * count + 1, sizeof(double));
|
||||
if (!xy) {
|
||||
ImagingError_MemoryError();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user