Unsatisfiable range with start value greater than content length was not properly skipped. The bug has been introduced in r4057.
diff --git a/src/http/modules/ngx_http_range_filter_module.c b/src/http/modules/ngx_http_range_filter_module.c index 57a5025..55a37d4 100644 --- a/src/http/modules/ngx_http_range_filter_module.c +++ b/src/http/modules/ngx_http_range_filter_module.c
@@ -264,10 +264,6 @@ return NGX_HTTP_RANGE_NOT_SATISFIABLE; } - if (start >= content_length) { - goto skip; - } - while (*p == ' ') { p++; } if (*p == ',' || *p == '\0') { @@ -299,7 +295,7 @@ end = content_length - 1; } - if (start > end) { + if (start >= content_length || start > end) { goto skip; }