mirror of
https://github.com/nodejs/http-parser.git
synced 2025-10-20 05:15:13 +08:00
Avoid chunk trailer overflow.
Check for overflow during chunk trailer by removing unnecessary check in macro PARSING_HEADER. This will force the parser to abort if the chunk trailer contains more than HTTP_MAX_HEADER_SIZE of data.
This commit is contained in:

committed by
Ryan Dahl

parent
1c3624a963
commit
81ca70aec1
@@ -258,7 +258,7 @@ enum state
|
||||
};
|
||||
|
||||
|
||||
#define PARSING_HEADER(state) (state <= s_headers_almost_done && 0 == (parser->flags & F_TRAILING))
|
||||
#define PARSING_HEADER(state) (state <= s_headers_almost_done)
|
||||
|
||||
|
||||
enum header_states
|
||||
|
Reference in New Issue
Block a user