avformat/ipmovie: Check that the OPCODE_INIT_AUDIO_BUFFERS size is large enough
Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f75b03c1f19_4820_descent3_level5_16bit_partial.mve Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									cb079b1b2b
								
							
						
					
					
						commit
						8faabf3bd2
					
				| @ -339,7 +339,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, | |||||||
| 
 | 
 | ||||||
|         case OPCODE_INIT_AUDIO_BUFFERS: |         case OPCODE_INIT_AUDIO_BUFFERS: | ||||||
|             av_dlog(NULL, "initialize audio buffers\n"); |             av_dlog(NULL, "initialize audio buffers\n"); | ||||||
|             if ((opcode_version > 1) || (opcode_size > 10)) { |             if ((opcode_version > 1) || (opcode_size > 10) || opcode_size < 6) { | ||||||
|                 av_dlog(NULL, "bad init_audio_buffers opcode\n"); |                 av_dlog(NULL, "bad init_audio_buffers opcode\n"); | ||||||
|                 chunk_type = CHUNK_BAD; |                 chunk_type = CHUNK_BAD; | ||||||
|                 break; |                 break; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user