We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45091fa commit 10f73dfCopy full SHA for 10f73df
src/HttpParser.h
@@ -461,6 +461,11 @@ struct HttpParser {
461
length -= consumed;
462
consumedTotal += consumed;
463
464
+ /* Even if we could parse it, check for length here as well */
465
+ if (consumed > MAX_FALLBACK_SIZE) {
466
+ return {HTTP_ERROR_431_REQUEST_HEADER_FIELDS_TOO_LARGE, FULLPTR};
467
+ }
468
+
469
/* Store HTTP version (ancient 1.0 or 1.1) */
470
req->ancientHttp = false;
471
0 commit comments