mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
smush: check audio packet size
Fixes null pointer dereference. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
845724c82c
commit
d98364edce
@ -211,7 +211,7 @@ static int smush_read_packet(AVFormatContext *ctx, AVPacket *pkt)
|
||||
case MKBETAG('W', 'a', 'v', 'e'):
|
||||
if (size < 13)
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (av_get_packet(pb, pkt, size) < 0)
|
||||
if (av_get_packet(pb, pkt, size) < 13)
|
||||
return AVERROR(EIO);
|
||||
|
||||
pkt->stream_index = smush->audio_stream_index;
|
||||
|
Loading…
Reference in New Issue
Block a user