Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I have been fuzzing some of the Kestrel methods and ran into a part where in crashes on certain multi-span headers. The issue seems to be in the fact that on multispan headers where one section ends with cr kestrel tries to see if there is data after cr inside the whole header (there is) and then when it rejects the header it tries to grab extra data from the specific span it inspects (and there is no data) so it throws
Expected Behavior
ParseHeaders module cleanly rejects the problematic header without exceptions
Steps To Reproduce
https://github.com/WereWind1/KestrelHttpParserExceptionMinimal
Exceptions (if any)
ArgumentOutOfRange
.NET Version
6.0.36 8.0.14 9.0.3
Anything else?
No response