avcodec/aacdec_fixed: Fix multiple runtime error: shift exponent 127 is too large for 32-bit type 'int'
Fixes: 1851/clusterfuzz-testcase-minimized-5692607495667712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		
							parent
							
								
									7f50c25124
								
							
						
					
					
						commit
						6c3a63fc3d
					
				@ -370,7 +370,9 @@ static void apply_dependent_coupling_fixed(AACContext *ac,
 | 
			
		||||
                    shift = (gain-1024) >> 3;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                if (shift < 0) {
 | 
			
		||||
                if (shift < -31) {
 | 
			
		||||
                    // Nothing to do
 | 
			
		||||
                } else if (shift < 0) {
 | 
			
		||||
                    shift = -shift;
 | 
			
		||||
                    round = 1 << (shift - 1);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user