summaryrefslogtreecommitdiff
path: root/deps/llhttp
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2019-06-10 08:03:48 -0700
committerFedor Indutny <fedor@indutny.com>2019-06-12 14:47:59 -0700
commitc1f0cbe961658b02ae51fe35bfe2d323d49ece34 (patch)
treeb0fdeedd821c4016f45e8abac1fb7f4d6db14a7e /deps/llhttp
parentd9add75cf5a8c50cc40e48effeb8c5581b4d4229 (diff)
downloadandroid-node-v8-c1f0cbe961658b02ae51fe35bfe2d323d49ece34.tar.gz
android-node-v8-c1f0cbe961658b02ae51fe35bfe2d323d49ece34.tar.bz2
android-node-v8-c1f0cbe961658b02ae51fe35bfe2d323d49ece34.zip
deps: update llhttp to 1.1.4
See: https://github.com/nodejs/llhttp/pull/26 PR-URL: https://github.com/nodejs/node/pull/28154 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/llhttp')
-rw-r--r--deps/llhttp/include/llhttp.h2
-rw-r--r--deps/llhttp/src/llhttp.c30
2 files changed, 24 insertions, 8 deletions
diff --git a/deps/llhttp/include/llhttp.h b/deps/llhttp/include/llhttp.h
index f9e008c3c9..1671af4d08 100644
--- a/deps/llhttp/include/llhttp.h
+++ b/deps/llhttp/include/llhttp.h
@@ -3,7 +3,7 @@
#define LLHTTP_VERSION_MAJOR 1
#define LLHTTP_VERSION_MINOR 1
-#define LLHTTP_VERSION_PATCH 3
+#define LLHTTP_VERSION_PATCH 4
#ifndef INCLUDE_LLHTTP_ITSELF_H_
#define INCLUDE_LLHTTP_ITSELF_H_
diff --git a/deps/llhttp/src/llhttp.c b/deps/llhttp/src/llhttp.c
index dc363aa7b6..2786638f3e 100644
--- a/deps/llhttp/src/llhttp.c
+++ b/deps/llhttp/src/llhttp.c
@@ -487,6 +487,14 @@ int llhttp__after_message_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__internal__c_update_finish_1(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ state->finish = 0;
+ return 0;
+}
+
int llhttp__internal__c_test_flags_1(
llhttp__internal_t* state,
const unsigned char* p,
@@ -559,7 +567,7 @@ int llhttp__internal__c_or_flags(
return 0;
}
-int llhttp__internal__c_update_finish_1(
+int llhttp__internal__c_update_finish_2(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -824,7 +832,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: {
switch (llhttp__after_message_complete(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_start;
+ goto s_n_llhttp__internal__n_invoke_update_finish_1;
}
/* UNREACHABLE */;
abort();
@@ -1277,7 +1285,7 @@ static llparse_state_t llhttp__internal__run(
}
state->_span_pos0 = (void*) p;
state->_span_cb0 = llhttp__on_body;
- goto s_n_llhttp__internal__n_invoke_update_finish_1;
+ goto s_n_llhttp__internal__n_eof;
/* UNREACHABLE */;
abort();
}
@@ -1291,7 +1299,7 @@ static llparse_state_t llhttp__internal__run(
case 3:
goto s_n_llhttp__internal__n_span_start_llhttp__on_body_1;
case 4:
- goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2;
+ goto s_n_llhttp__internal__n_invoke_update_finish_2;
default:
goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete;
}
@@ -4652,6 +4660,14 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_invoke_update_finish_1: {
+ switch (llhttp__internal__c_update_finish_1(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_start;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_pause_5: {
state->error = 0x14;
state->reason = "on_message_complete pause";
@@ -4878,10 +4894,10 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_finish_1: {
- switch (llhttp__internal__c_update_finish_1(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_finish_2: {
+ switch (llhttp__internal__c_update_finish_2(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_eof;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2;
}
/* UNREACHABLE */;
abort();