sahvx655-wq opened a new pull request, #3325:
URL: https://github.com/apache/brpc/pull/3325

   A DATA frame with the PADDED flag but Length 0 underflows frag_size here. 
`--frag_size` wraps the uint32_t to 0xFFFFFFFF, the `frag_size < pad_length` 
check then passes, and the bogus size reaches append_and_forward, which 
swallows the rest of the connection buffer as one DATA payload and feeds ~4GiB 
into the flow-control counter. OnHeaders already rejects this case; OnData was 
missing the same guard. Fix returns FRAME_SIZE_ERROR per RFC 7540 6.1 when a 
padded frame has no room for the pad-length byte.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to