Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update HTTP/2 HPACK Decoder to check for oversized headers after header processing #6273
Currently the HPACK Decoder checks to see if the maxHeaderListSize has been exceeded while it is still in the decode loop. This means that we can abort early, and leave the decoder side table corrupted.
Moved the maxHeaderListSize limit check to after the decoder processing loop, so that we abort only when the maxHeaderListSizeGoAway limit is exceeded.
Added a test for this behavior.