Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tlv: do not leak on allocation failure in curl_slist_append #74

Merged
merged 3 commits into from
Mar 9, 2023

Conversation

catenacyber
Copy link
Contributor

curl_slist_append can return NULL, especially when there is an allocation failure inside it...
In this case, ignore the addition of the new value (another option would be to go to EXIT_LABEL with some rc value for an error code)

This was found by POC nallocfuzz...

@cmeister2
Copy link
Collaborator

Thanks! I'll review this in the morning.

@bagder bagder requested a review from cmeister2 March 9, 2023 21:59
Copy link
Collaborator

@cmeister2 cmeister2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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