# HG changeset patch # User michael # Date 1169501606 0 # Node ID f8c5d2c076d544b81c8d49dabc12686c9e131fd5 # Parent ff33c20963ecf7fc35c6acaad4225cc2d6b28af4 better padsize check diff -r ff33c20963ec -r f8c5d2c076d5 asf.c --- a/asf.c Mon Jan 22 21:31:40 2007 +0000 +++ b/asf.c Mon Jan 22 21:33:26 2007 +0000 @@ -504,7 +504,7 @@ 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; }