httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r1163916 - /httpd/httpd/trunk/modules/http/byterange_filter.c
Date Thu, 01 Sep 2011 06:24:53 GMT
Author: rpluem
Date: Thu Sep  1 06:24:53 2011
New Revision: 1163916

URL: http://svn.apache.org/viewvc?rev=1163916&view=rev
Log:
* Ranges like --2 or -0 are invalid

Modified:
    httpd/httpd/trunk/modules/http/byterange_filter.c

Modified: httpd/httpd/trunk/modules/http/byterange_filter.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/byterange_filter.c?rev=1163916&r1=1163915&r2=1163916&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/byterange_filter.c (original)
+++ httpd/httpd/trunk/modules/http/byterange_filter.c Thu Sep  1 06:24:53 2011
@@ -549,6 +549,9 @@ static int ap_set_byterange(request_rec 
             if (apr_strtoff(&number, dash+1, &errp, 10) || *errp) {
                 return 0;
             }
+            if (number < 1) {
+                return 0;
+            }
             start = clength - number;
             end = clength - 1;
         }



Mime
View raw message