[FFmpeg-devel] [PATCH] avcodec/webp: validate the distance prefix code

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Mon Mar 2 20:58:45 CET 2015


Hi,

according to the WebP Lossless Bitstream Specification [1] the highest allowed 
value for the prefix code is 39. Attached patch adds a check for this to avoid 
crashes decoding broken files.

Best regards,
Andreas


1: 
https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification#4_image_data 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-webp-validate-the-distance-prefix-code.patch
Type: text/x-diff
Size: 1317 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150302/693f8fab/attachment.bin>


More information about the ffmpeg-devel mailing list