mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
Fixed overflow detection in chunked parser
This was broken in f405ef11f (1.29.4).
Reported by Matt Suiche, Tolmo Inc.
This commit is contained in:
parent
f340e7885a
commit
e419e28c98
1 changed files with 1 additions and 1 deletions
|
|
@ -2420,7 +2420,7 @@ data:
|
|||
ctx->state = state;
|
||||
b->pos = pos;
|
||||
|
||||
if (ctx->size > NGX_MAX_OFF_T_VALUE - 5) {
|
||||
if (ctx->size > NGX_MAX_OFF_T_VALUE - 9) {
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue