[FFmpeg-devel] [PATCH] pngdec: add ability to check chunk CRC

Lynne dev at lynne.ee
Thu Mar 7 20:26:32 EET 2019


By default now, if AV_EF_CRCCHECK or AV_EF_IGNORE_ERR are enabled the decoder
will skip the chunk and carry on with the next one. This should make the       
decoder able to decode more corrupt files because the functions which decode
individual chunks will very likely error out if fed invalid data and stop the
decoding of the entire image.
Should this be made default? CRC verification doesn't take long even for very
large files.                                                      
Also fix the length check for chunk size. It needs to take into account the
4 byte tag as well as the 4 byte CRC.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pngdec-add-ability-to-check-chunk-CRC.patch
Type: text/x-patch
Size: 2981 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190307/520745b8/attachment.bin>


More information about the ffmpeg-devel mailing list