Commit 237b1639 authored by michael's avatar michael

better padsize check


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7656 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8908ddf0
...@@ -504,7 +504,7 @@ static int asf_get_packet(AVFormatContext *s) ...@@ -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)); av_log(s, AV_LOG_ERROR, "invalid packet_length %d at:%"PRId64"\n", packet_length, url_ftell(pb));
return -1; 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)); av_log(s, AV_LOG_ERROR, "invalid padsize %d at:%"PRId64"\n", padsize, url_ftell(pb));
return -1; return -1;
} }
......
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