You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/pngdec: fix signed overflow
fixes fate ftrapv failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -226,7 +226,7 @@ static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type, | ||||
|         if (bpp == 4) { | ||||
|             p = *(int*)dst; | ||||
|             for (; i < size; i += bpp) { | ||||
|                 int s = *(int*)(src + i); | ||||
|                 unsigned s = *(int*)(src + i); | ||||
|                 p = ((s & 0x7f7f7f7f) + (p & 0x7f7f7f7f)) ^ ((s ^ p) & 0x80808080); | ||||
|                 *(int*)(dst + i) = p; | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user