Commit 1cce7def authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

Check for corrupted data in avs demuxer.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 834b3760
......@@ -163,6 +163,8 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt)
sub_type = avio_r8(s->pb);
type = avio_r8(s->pb);
size = avio_rl16(s->pb);
if (size < 4)
return AVERROR_INVALIDDATA;
avs->remaining_frame_size -= size;
switch (type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment