nginx/nginx · error

NGX_LOG_ALERT

NGX_LOG_ALERT

Error message

range in overlapped buffers

What it means

Error "range in overlapped buffers" thrown in nginx/nginx.

Source

Thrown at src/http/modules/ngx_http_range_filter_module.c:722

    if (!buf->last_buf) {
        start = ctx->offset;
        last = ctx->offset + ngx_buf_size(buf);

        range = ctx->ranges.elts;
        for (i = 0; i < ctx->ranges.nelts; i++) {
            if (start > range[i].start || last < range[i].end) {
                goto overlapped;
            }
        }
    }

    ctx->offset = ngx_buf_size(buf);

    return NGX_OK;

overlapped:

    ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
                  "range in overlapped buffers");

    return NGX_ERROR;
}


static ngx_int_t
ngx_http_range_singlepart_body(ngx_http_request_t *r,
    ngx_http_range_filter_ctx_t *ctx, ngx_chain_t *in)
{
    off_t              start, last;
    ngx_int_t          rc;
    ngx_buf_t         *buf;
    ngx_chain_t       *out, *cl, *tl, **ll;
    ngx_http_range_t  *range;

    out = NULL;
    ll = &out;

View on GitHub (pinned to 3f6f7824d4)

When it happens

Trigger: Thrown at src/http/modules/ngx_http_range_filter_module.c:722 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nginx/nginx@3f6f7824d4 (2026-08-22). Data as JSON: /api/errors/195e68ceb9639f1d. Report an issue: GitHub.