Skip to content
Snippets Groups Projects
Commit 5d44c061 authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer
Browse files

Check for out of bound writes in the avs demuxer.

parent 1cce7def
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,8 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt)
switch (type) {
case AVS_PALETTE:
if (size - 4 > sizeof(palette))
return AVERROR_INVALIDDATA;
ret = avio_read(s->pb, palette, size - 4);
if (ret < size - 4)
return AVERROR(EIO);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment