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:
Sean Cunningham
2011-02-11 13:27:06 -05:00
committed by Ryan Dahl
parent 1c3624a963
commit 81ca70aec1

View File

@@ -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 enum header_states