Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 084ffd8

Browse filesBrowse files
indutnyBridgeAR
authored andcommitted
deps: update llhttp to 1.1.4
See: nodejs/llhttp#26 PR-URL: #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>
1 parent 00e6c9d commit 084ffd8
Copy full SHA for 084ffd8

File tree

Expand file treeCollapse file tree

2 files changed

+24
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+24
-8
lines changed
Open diff view settings
Collapse file

‎deps/llhttp/include/llhttp.h‎

Copy file name to clipboardExpand all lines: deps/llhttp/include/llhttp.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define LLHTTP_VERSION_MAJOR 1
55
#define LLHTTP_VERSION_MINOR 1
6-
#define LLHTTP_VERSION_PATCH 3
6+
#define LLHTTP_VERSION_PATCH 4
77

88
#ifndef INCLUDE_LLHTTP_ITSELF_H_
99
#define INCLUDE_LLHTTP_ITSELF_H_
Collapse file

‎deps/llhttp/src/llhttp.c‎

Copy file name to clipboardExpand all lines: deps/llhttp/src/llhttp.c
+23-7Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,14 @@ int llhttp__after_message_complete(
487487
llhttp__internal_t* s, const unsigned char* p,
488488
const unsigned char* endp);
489489

490+
int llhttp__internal__c_update_finish_1(
491+
llhttp__internal_t* state,
492+
const unsigned char* p,
493+
const unsigned char* endp) {
494+
state->finish = 0;
495+
return 0;
496+
}
497+
490498
int llhttp__internal__c_test_flags_1(
491499
llhttp__internal_t* state,
492500
const unsigned char* p,
@@ -559,7 +567,7 @@ int llhttp__internal__c_or_flags(
559567
return 0;
560568
}
561569

562-
int llhttp__internal__c_update_finish_1(
570+
int llhttp__internal__c_update_finish_2(
563571
llhttp__internal_t* state,
564572
const unsigned char* p,
565573
const unsigned char* endp) {
@@ -824,7 +832,7 @@ static llparse_state_t llhttp__internal__run(
824832
s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: {
825833
switch (llhttp__after_message_complete(state, p, endp)) {
826834
default:
827-
goto s_n_llhttp__internal__n_start;
835+
goto s_n_llhttp__internal__n_invoke_update_finish_1;
828836
}
829837
/* UNREACHABLE */;
830838
abort();
@@ -1277,7 +1285,7 @@ static llparse_state_t llhttp__internal__run(
12771285
}
12781286
state->_span_pos0 = (void*) p;
12791287
state->_span_cb0 = llhttp__on_body;
1280-
goto s_n_llhttp__internal__n_invoke_update_finish_1;
1288+
goto s_n_llhttp__internal__n_eof;
12811289
/* UNREACHABLE */;
12821290
abort();
12831291
}
@@ -1291,7 +1299,7 @@ static llparse_state_t llhttp__internal__run(
12911299
case 3:
12921300
goto s_n_llhttp__internal__n_span_start_llhttp__on_body_1;
12931301
case 4:
1294-
goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2;
1302+
goto s_n_llhttp__internal__n_invoke_update_finish_2;
12951303
default:
12961304
goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete;
12971305
}
@@ -4652,6 +4660,14 @@ static llparse_state_t llhttp__internal__run(
46524660
/* UNREACHABLE */;
46534661
abort();
46544662
}
4663+
s_n_llhttp__internal__n_invoke_update_finish_1: {
4664+
switch (llhttp__internal__c_update_finish_1(state, p, endp)) {
4665+
default:
4666+
goto s_n_llhttp__internal__n_start;
4667+
}
4668+
/* UNREACHABLE */;
4669+
abort();
4670+
}
46554671
s_n_llhttp__internal__n_pause_5: {
46564672
state->error = 0x14;
46574673
state->reason = "on_message_complete pause";
@@ -4878,10 +4894,10 @@ static llparse_state_t llhttp__internal__run(
48784894
/* UNREACHABLE */;
48794895
abort();
48804896
}
4881-
s_n_llhttp__internal__n_invoke_update_finish_1: {
4882-
switch (llhttp__internal__c_update_finish_1(state, p, endp)) {
4897+
s_n_llhttp__internal__n_invoke_update_finish_2: {
4898+
switch (llhttp__internal__c_update_finish_2(state, p, endp)) {
48834899
default:
4884-
goto s_n_llhttp__internal__n_eof;
4900+
goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2;
48854901
}
48864902
/* UNREACHABLE */;
48874903
abort();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.