You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/jpegxl_probe: Check init_get_bits8() for failure
Fixes: missing error check Fixes: CID1504270 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -250,8 +250,11 @@ int ff_jpegxl_verify_codestream_header(const uint8_t *buf, int buflen) | ||||
|     int xyb_encoded = 1, have_icc_profile = 0; | ||||
|     uint32_t num_extra_channels; | ||||
|     uint64_t extensions; | ||||
|     int ret; | ||||
|  | ||||
|     init_get_bits8(gb, buf, buflen); | ||||
|     ret = init_get_bits8(gb, buf, buflen); | ||||
|     if (ret < 0) | ||||
|         return ret; | ||||
|  | ||||
|     if (jxl_bits(16) != FF_JPEGXL_CODESTREAM_SIGNATURE_LE) | ||||
|         return -1; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user