Skip to content

curl_easy_send/recv: check pointer arg - #23035

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:easy_send-recv-arg-check
Closed

icing wants to merge 1 commit into
curl:masterfrom
icing:easy_send-recv-arg-check

Conversation

@icing

@icing icing commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Return CURLE_BAD_FUNCTION_ARGUMENT when a NULL has been passed as arg n.

Reported-by: Joshua Rogers

Return `CURLE_BAD_FUNCTION_ARGUMENT` when a `NULL` has been
passed as arg `n`.

Reported-by: Joshua Rogers
@icing
icing requested a review from bagder September 22, 2026 11:24
@bagder bagder closed this in f2a1535 Sep 22, 2026
@qhill

qhill commented Sep 22, 2026

Copy link
Copy Markdown

Too late but if you did the check just before CURL_EAPI_ENTER you could avoid the goto.

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.

3 participants