Merge pull request #6714 from wiredfool/valgrind_imagingtransform

Fix compiler error: accessing 64 bytes in a region of size 48
This commit is contained in:
Andrew Murray 2022-11-06 22:37:31 +11:00 committed by GitHub
commit 03b8ac911d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1829,7 +1829,7 @@ _resize(ImagingObject *self, PyObject *args) {
box[1] - (int)box[1] == 0 && box[3] - box[1] == ysize) {
imOut = ImagingCrop(imIn, box[0], box[1], box[2], box[3]);
} else if (filter == IMAGING_TRANSFORM_NEAREST) {
double a[6];
double a[8];
memset(a, 0, sizeof a);
a[0] = (double)(box[2] - box[0]) / xsize;