Commit 7d7410a5 authored by michael's avatar michael

check for frames with 2*size > max_dist and no crc


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7076 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent edd0d3b4
......@@ -687,6 +687,9 @@ static int decode_frame_header(NUTContext *nut, int *flags_ret, int64_t *pts, in
get_v(bc);
if(flags&FLAG_CHECKSUM){
get_be32(bc); //FIXME check this
}else if(size > 2*nut->max_distance){
av_log(s, AV_LOG_ERROR, "frame size > 2max_distance and no checksum\n");
return -1;
}
*flags_ret= flags;
......
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