mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
check for frames with 2*size > max_dist and no crc
Originally committed as revision 7076 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8ba3e5d843
commit
2dbe0bd45f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user