Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 19, 2025

The code obtained a pointer resp via Curl_bufq_peek(), but called Curl_bufq_skip() before it would access them in the failf() call.

The Curl_bufq_skip() call can trigger prune_head which may free or recycle the chunk that resp points into.

Pointed out by ZeroPath

The code obtained a pointer resp via Curl_bufq_peek(), but called
Curl_bufq_skip() before it would access them in the failf() call.

The Curl_bufq_skip() call can trigger prune_head which may free or
recycle the chunk that resp points into.

Pointed out by ZeroPath
@bagder bagder marked this pull request as ready for review October 19, 2025 11:13
@bagder bagder closed this in 8d302ec Oct 19, 2025
@bagder bagder deleted the bagder/socks-failf branch October 19, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant