Skip to content

Commit

Permalink
Merge pull request #6714 from wiredfool/valgrind_imagingtransform
Browse files Browse the repository at this point in the history
Fix compiler error: accessing 64 bytes in a region of size 48
  • Loading branch information
radarhere committed Nov 6, 2022
2 parents 7b763be + 41987cf commit 03b8ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_imaging.c
Expand Up @@ -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;
Expand Down

0 comments on commit 03b8ac9

Please sign in to comment.