Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #282501

Category curl
Changed by Joshua Rogers <MegaManSecohnoyoudont@users.noreply.github.com>
Changed at Mon 21 Sep 2026 17:43:19
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision 7934b5400f3e95ee63c3658c9bda2ec35e0afb31

Comments

capsule: reject a capsule that can never be buffered
The decoder waited for the full advertised payload before checking that
it fits anywhere, so a peer advertising a length the receive queue can
never hold made cf_capsule_recv() return CURLE_AGAIN forever.

Check the destination buffer first and fail when the receive queue is
full and still short of the capsule. Also bound the length so that
offset + payload_len cannot wrap.

Add a unit3400 case for the full-queue rejection.

Closes #22998

Changed files