mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-27 05:04:23 +00:00
* Validate HEADERS frame length accounts for priority data Motivation: When parsing a HEADERS frame payload which includes priority data the expected length of the frame is not validated to ensure that it is large enough to account for the stream data. This can lead to the expected payload length being negative. Modifications: - Validate that when stream priority data is present that the frame length is at least that size - Add fuzz testing failure case Result: The frame decoder will throw a protocol error when parsing a HEADERS frame if the length of the frame is less than the number of bytes required for stream priority data and the priority flag is set. * Add additional tests * Fix weirdo formatting