You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	jpeg2000dec: Add more checks when parsing headers
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
		| @@ -1284,6 +1284,10 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) | ||||
|                 av_log(s->avctx, AV_LOG_ERROR, "Missing SOT\n"); | ||||
|                 return AVERROR_INVALIDDATA; | ||||
|             } | ||||
|             if (!s->tile) { | ||||
|                 av_log(s->avctx, AV_LOG_ERROR, "Missing SIZ\n"); | ||||
|                 return AVERROR_INVALIDDATA; | ||||
|             } | ||||
|  | ||||
|             tile = s->tile + s->curtileno; | ||||
|             tp = tile->tile_part + tile->tp_idx; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user