You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/movtextdec: Fix shift overflows in mov_text_init()
Fixes: left shift of 243 by 24 places cannot be represented in type 'int' Fixes: 22716/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOVTEXT_fuzzer-5704263425851392 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:
		| @@ -492,10 +492,10 @@ static int mov_text_init(AVCodecContext *avctx) { | ||||
|         return ff_ass_subtitle_header_full(avctx, | ||||
|                     m->frame_width, m->frame_height, | ||||
|                     m->d.font, m->d.fontsize, | ||||
|                     (255 - m->d.alpha) << 24 | RGB_TO_BGR(m->d.color), | ||||
|                     (255 - m->d.alpha) << 24 | RGB_TO_BGR(m->d.color), | ||||
|                     (255 - m->d.back_alpha) << 24 | RGB_TO_BGR(m->d.back_color), | ||||
|                     (255 - m->d.back_alpha) << 24 | RGB_TO_BGR(m->d.back_color), | ||||
|                     (255U - m->d.alpha) << 24 | RGB_TO_BGR(m->d.color), | ||||
|                     (255U - m->d.alpha) << 24 | RGB_TO_BGR(m->d.color), | ||||
|                     (255U - m->d.back_alpha) << 24 | RGB_TO_BGR(m->d.back_color), | ||||
|                     (255U - m->d.back_alpha) << 24 | RGB_TO_BGR(m->d.back_color), | ||||
|                     m->d.bold, m->d.italic, m->d.underline, | ||||
|                     ASS_DEFAULT_BORDERSTYLE, m->d.alignment); | ||||
|     } else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user