mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
better padsize check
Originally committed as revision 7656 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0b93103a31
commit
92216453db
@ -504,7 +504,7 @@ static int asf_get_packet(AVFormatContext *s)
|
||||
av_log(s, AV_LOG_ERROR, "invalid packet_length %d at:%"PRId64"\n", packet_length, url_ftell(pb));
|
||||
return -1;
|
||||
}
|
||||
if(padsize >= (1U<<29)){
|
||||
if(padsize >= packet_length){
|
||||
av_log(s, AV_LOG_ERROR, "invalid padsize %d at:%"PRId64"\n", padsize, url_ftell(pb));
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user