From 15aaf14690afe4ebfed39770c6c482ec70977a17 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Wed, 12 May 2021 19:50:48 -0700 Subject: [PATCH] deps: update llhttp to 6.0.2 Fix: #37053 See: https://github.com/nodejs/llparse/pull/44 PR-URL: https://github.com/nodejs/node/pull/38665 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Daniele Belardi Reviewed-By: Matteo Collina Reviewed-By: Anna Henningsen --- deps/llhttp/include/llhttp.h | 2 +- deps/llhttp/src/llhttp.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deps/llhttp/include/llhttp.h b/deps/llhttp/include/llhttp.h index aa488b0f2f0de8..2ecba18652a2a7 100644 --- a/deps/llhttp/include/llhttp.h +++ b/deps/llhttp/include/llhttp.h @@ -3,7 +3,7 @@ #define LLHTTP_VERSION_MAJOR 6 #define LLHTTP_VERSION_MINOR 0 -#define LLHTTP_VERSION_PATCH 1 +#define LLHTTP_VERSION_PATCH 2 #ifndef LLHTTP_STRICT_MODE # define LLHTTP_STRICT_MODE 0 diff --git a/deps/llhttp/src/llhttp.c b/deps/llhttp/src/llhttp.c index a8efce1033e319..a44d9e72538c13 100644 --- a/deps/llhttp/src/llhttp.c +++ b/deps/llhttp/src/llhttp.c @@ -1103,7 +1103,7 @@ static llparse_state_t llhttp__internal__run( case s_n_llhttp__internal__n_consume_content_length: s_n_llhttp__internal__n_consume_content_length: { size_t avail; - size_t need; + uint64_t need; avail = endp - p; need = state->content_length; @@ -1458,7 +1458,7 @@ static llparse_state_t llhttp__internal__run( case s_n_llhttp__internal__n_consume_content_length_1: s_n_llhttp__internal__n_consume_content_length_1: { size_t avail; - size_t need; + uint64_t need; avail = endp - p; need = state->content_length; @@ -8677,7 +8677,7 @@ static llparse_state_t llhttp__internal__run( case s_n_llhttp__internal__n_consume_content_length: s_n_llhttp__internal__n_consume_content_length: { size_t avail; - size_t need; + uint64_t need; avail = endp - p; need = state->content_length; @@ -9025,7 +9025,7 @@ static llparse_state_t llhttp__internal__run( case s_n_llhttp__internal__n_consume_content_length_1: s_n_llhttp__internal__n_consume_content_length_1: { size_t avail; - size_t need; + uint64_t need; avail = endp - p; need = state->content_length;