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.
v0.6
Sean Cunningham 14 years ago 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

Loading…
Cancel
Save