mirror of https://github.com/mpv-player/mpv
demux_mov: fix possible hang on invalid input
len < 8 is also invalid for 64-bit codec chunk size. Previous code could cause hang. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32708 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7e24b8edb4
commit
21367beef1
|
@ -367,7 +367,7 @@ static int mov_check_file(demuxer_t* demuxer){
|
|||
goto skip_chunk;
|
||||
}
|
||||
#endif
|
||||
else if(len<8) break; // invalid chunk
|
||||
if(len<8) break; // invalid chunk
|
||||
|
||||
switch(id){
|
||||
case MOV_FOURCC('f','t','y','p'): {
|
||||
|
|
Loading…
Reference in New Issue