[FFmpeg-devel] [PATCH] avformat/adxdec: check avctx->channels for invalid values

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Wed Feb 25 23:48:33 CET 2015


Hi,

if avctx->channels is 0 in adx_read_packet, size gets set to 0, av_get_packet 
sets pkt->data to NULL and then AV_RB16(pkt->data) results in a null pointer 
dereference.

Attached patch fixes this.

Best regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-adxdec-check-avctx-channels-for-invalid-val.patch
Type: text/x-diff
Size: 986 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150225/3eaa6159/attachment.bin>


More information about the ffmpeg-devel mailing list