From: Ruediger Pluem Date: Thu, 1 Sep 2011 06:24:53 +0000 (+0000) Subject: * Ranges like --2 or -0 are invalid X-Git-Tag: 2.3.15~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=191278d04607b313477cbb4b8f9243c720532439;p=thirdparty%2Fapache%2Fhttpd.git * Ranges like --2 or -0 are invalid git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1163916 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index b6909730dc5..cf0edc587ce 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -549,6 +549,9 @@ static int ap_set_byterange(request_rec *r, apr_off_t clength, if (apr_strtoff(&number, dash+1, &errp, 10) || *errp) { return 0; } + if (number < 1) { + return 0; + } start = clength - number; end = clength - 1; }