]> granicus.if.org Git - apache/commit
merge totally reversed ranges like 4-5,1-2 into 1-5
authorGreg Ames <gregames@apache.org>
Sat, 27 Aug 2011 19:57:41 +0000 (19:57 +0000)
committerGreg Ames <gregames@apache.org>
Sat, 27 Aug 2011 19:57:41 +0000 (19:57 +0000)
commitacac1296dd80f909a7f521ac12edc7dd7cf29692
treee13b7c11e3a50c013e24493ad480749a34523dc0
parent5b2f4b9dfb4270f6e4bcf268aa2dbccae4813221
merge totally reversed ranges like 4-5,1-2 into 1-5

I interpret the former test
if (!(end <= ostart || start-1 >= oend)) {

as

if (not(end is bad || start is good)) { merge }

ORing the bad condition with the good doesn't produce the desired result.

it is not necessary to test "end" due to the conditions tested in the assert.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1162434 13f79535-47bb-0310-9956-ffa450edef68
modules/http/byterange_filter.c