Skip to content

Commit b68e640

Browse files
committed
fix smuggling
1 parent 6825539 commit b68e640

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/bun-uws/src/ChunkedEncoding.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ namespace uWS {
8787
state &= ~STATE_IS_CHUNKED_EXTENSION;
8888
break;
8989
}
90+
if(data[0] <= 32) {
91+
state = STATE_IS_ERROR;
92+
return;
93+
}
94+
9095
data.remove_prefix(1);
9196
}
9297
}

0 commit comments

Comments
 (0)