changeset 1715:f8c5d2c076d5 libavformat

better padsize check
author michael
date Mon, 22 Jan 2007 21:33:26 +0000
parents ff33c20963ec
children 01b3cc392466
files asf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }