You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/alsdec: fix undefined shift in multiply()
Fixes: left shift of negative value -6
Fixes: 15564/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5701655938465792
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b880b3b236)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
			
			
This commit is contained in:
		| @@ -1416,7 +1416,7 @@ static SoftFloat_IEEE754 multiply(SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) { | |||||||
|         return_val = 0x80000000U; |         return_val = 0x80000000U; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return_val |= (a.exp + b.exp + bit_count - 47) << 23; |     return_val |= ((unsigned)av_clip(a.exp + b.exp + bit_count - 47, -126, 127) << 23) & 0x7F800000; | ||||||
|     return_val |= mantissa; |     return_val |= mantissa; | ||||||
|     return av_bits2sf_ieee754(return_val); |     return av_bits2sf_ieee754(return_val); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user