You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/nuv: zero buffer padding
Fixes use of uninitialized memory Fixes msan_uninit-mem_7f4a141261de_7405_nirvana.nuv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -218,6 +218,7 @@ retry: | ||||
|         } | ||||
|         buf      = c->decomp_buf; | ||||
|         buf_size = c->decomp_size - FFMAX(FF_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING) - outlen; | ||||
|         memset(c->decomp_buf + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); | ||||
|     } | ||||
|     if (c->codec_frameheader) { | ||||
|         int w, h, q; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user