Skip to content

Commit

Permalink
deps: update llhttp to 1.1.4
Browse files Browse the repository at this point in the history
See: nodejs/llhttp#26

PR-URL: #28154
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
indutny committed Jun 12, 2019
1 parent d9add75 commit c1f0cbe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deps/llhttp/include/llhttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down
30 changes: 23 additions & 7 deletions deps/llhttp/src/llhttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c1f0cbe

Please sign in to comment.