Commit 0b90e6df authored by bcoudurier's avatar bcoudurier

check that len is not negative

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18961 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b6a50918
......@@ -892,6 +892,8 @@ static void mpegts_push_data(MpegTSFilter *filter,
/* PES packing parsing */
case MPEGTS_PESHEADER_FILL:
len = pes->pes_header_size - pes->data_index;
if (len < 0)
return
if (len > buf_size)
len = buf_size;
memcpy(pes->header + pes->data_index, p, len);
......
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