Skip to content

Commit

Permalink
* Ranges like --2 or -0 are invalid
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1163916 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rpluem committed Sep 1, 2011
1 parent da2c874 commit 191278d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/http/byterange_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 191278d

Please sign in to comment.