Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Dec 6, 2025

curl_formget() accepts a user-provided callback function but does not validate it is non-NULL before calling it. If a caller passes NULL, the function will crash with SIGSEGV.

Add NULL check at the start of the function to return an appropriate error code instead of crashing.

curl_formget() accepts a user-provided callback function but does not
validate it is non-NULL before calling it. If a caller passes NULL,
the function will crash with SIGSEGV.

Add NULL check at the start of the function to return an appropriate
error code instead of crashing.

Signed-off-by: Robert W. Van Kirk <robert@rwvk.tech>
@github-actions github-actions bot added the MIME label Dec 6, 2025
@bagder
Copy link
Member Author

bagder commented Dec 6, 2025

For some reason, GitHub completely hides that this patch/commit was authored by Robert W. Van Kirk.

@bagder bagder marked this pull request as ready for review December 6, 2025 22:47
@bagder bagder closed this in 1c0822e Dec 6, 2025
@bagder bagder deleted the bagder/formget-null branch December 6, 2025 22:49
@bagder
Copy link
Member Author

bagder commented Dec 6, 2025

Thanks!

@samueloph
Copy link
Contributor

For some reason, GitHub completely hides that this patch/commit was authored by Robert W. Van Kirk.

For what it's worth, I've seen this problem previously when the email of the author didn't map to a GitHub account.

That seems to be the case here, but some webpages will still show the data correctly, it's hit or miss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants