HTTP/2: validate HEADERS PRIORITY payload length#635
HTTP/2: validate HEADERS PRIORITY payload length#635arturobernalg merged 1 commit intoapache:masterfrom
Conversation
|
@arturobernalg The PRIORITY mechanism in HEADERS frame has been deprecated https://www.rfc-editor.org/rfc/rfc9113.html#PriorityHere. Why do we need this check? |
Deprecated priority is about semantics, not framing. If the peer sets HEADERS PRIORITY, the 5-octet fields are still mandatory; otherwise it’s a malformed frame → FRAME_SIZE_ERROR. |
Reject incoming HEADERS frames with the PRIORITY flag set but without the mandatory 5-byte priority fields, mapping the condition to a FRAME_SIZE_ERROR instead of allowing a BufferUnderflowException.
09004c5 to
b656480
Compare
Reject incoming HEADERS frames with the PRIORITY flag set but without the mandatory 5-byte priority fields, mapping the condition to a FRAME_SIZE_ERROR instead of allowing a BufferUnderflowException.