You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
curl_url_get() with CURLU_URLENCODE returns CURLUE_OK and NULL for an empty part #23659
Without CURLU_URLENCODE the same call also returns CURLUE_OK, but sets user to an allocated empty string. The same happens for an empty password (https://user:@example.com/) and, with CURLU_GET_EMPTY, for an empty query (https://example.com/?) and fragment (https://example.com/#).
Reported by Dilshod Urazov (GenProof)
I expected the following
CURLUE_OK with *content set to an allocated "", since the man page says content gets "updated to point to a newly allocated string with the contents". Code that uses the string after CURLUE_OK dereferences NULL.
Activity
urlapi: return a blank user blank even with CURLU_URLENCODE