Skip to content
Snippets Groups Projects
Commit e055932f authored by Laurent Aimar's avatar Laurent Aimar Committed by Martin Storsjö
Browse files

Check for invalid packet size in the smacker demuxer.

parent 273aab99
No related branches found
No related tags found
No related merge requests found
......@@ -304,6 +304,8 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
}
flags >>= 1;
}
if (frame_size < 0)
return AVERROR_INVALIDDATA;
if (av_new_packet(pkt, frame_size + 768))
return AVERROR(ENOMEM);
if(smk->frm_size[smk->cur_frame] & 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment