Skip to content

pingpong: guard sendleft against a send reporting more than requested - #23323

Closed
MegaManSec wants to merge 1 commit into
curl:masterfrom
MegaManSec:pingpong-overwrite-guard
Closed

MegaManSec wants to merge 1 commit into
curl:masterfrom
MegaManSec:pingpong-overwrite-guard

Conversation

@MegaManSec

Copy link
Copy Markdown
Contributor

Use < instead of != so pp->sendleft is never computed from a byte count that exceeds the buffer length (which would underflow it).

Use < instead of != so sendleft is not computed from a byte count that
exceeds the buffer length.

Ref: curl#23260
@bagder bagder closed this in 1c19d96 Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants