mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	Fix compiler error:
src/_imaging.c:1842:17: warning: ‘ImagingTransform’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
       1842 |         imOut = ImagingTransform(
            |                 ^~~~~~~~~~~~~~~~~
       1843 |             imOut, imIn, IMAGING_TRANSFORM_AFFINE, 0, 0, xsize, ysize, a, filter, 1);
            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_imaging.c:1842:17: note: referencing argument 8 of type ‘double *’
			
			
This commit is contained in:
		
							parent
							
								
									d594f4cb8d
								
							
						
					
					
						commit
						41987cffad
					
				|  | @ -1829,7 +1829,7 @@ _resize(ImagingObject *self, PyObject *args) { | ||||||
|         box[1] - (int)box[1] == 0 && box[3] - box[1] == ysize) { |         box[1] - (int)box[1] == 0 && box[3] - box[1] == ysize) { | ||||||
|         imOut = ImagingCrop(imIn, box[0], box[1], box[2], box[3]); |         imOut = ImagingCrop(imIn, box[0], box[1], box[2], box[3]); | ||||||
|     } else if (filter == IMAGING_TRANSFORM_NEAREST) { |     } else if (filter == IMAGING_TRANSFORM_NEAREST) { | ||||||
|         double a[6]; |         double a[8]; | ||||||
| 
 | 
 | ||||||
|         memset(a, 0, sizeof a); |         memset(a, 0, sizeof a); | ||||||
|         a[0] = (double)(box[2] - box[0]) / xsize; |         a[0] = (double)(box[2] - box[0]) / xsize; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user