]> git.kaiwu.me - nginx.git/commit
Slice filter: overflow protection in slice range requests
authorVadim Zhestikov <v.zhestikov@f5.com>
Tue, 11 Aug 2026 21:06:19 +0000 (14:06 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Tue, 25 Aug 2026 21:36:54 +0000 (14:36 -0700)
commit028c0fab847a9b3552130682352ac890f41f7550
tree131f3b4e7c88820df7bf7a7dea292cbefda7e2bb
parent9c30a4debcdef47fdb056b0bd1cff29882f372d9
Slice filter: overflow protection in slice range requests

When the byte range is passed in the client Range header, the range
start is accepted up to NGX_MAX_OFF_T_VALUE, while
ngx_http_slice_range_variable() adds the slice size to it when
formatting the slice end.  With start values close to the maximum
this overflowed.

Now such range starts are ignored, similarly to other ranges not
handled by ngx_http_slice_get_start().
src/http/modules/ngx_http_slice_filter_module.c