Closed catenacyber closed 1 year ago
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)
curl_slist_append
EXIT_LABEL
rc
This was found by POC nallocfuzz...
Thanks! I'll review this in the morning.
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 toEXIT_LABEL
with somerc
value for an error code)This was found by POC nallocfuzz...