← Commit list

f1f76e0ea8

Daniel Stenberg
Daniel Stenberg
2025-12-04
SUCCESS Duration: 228s

Subject

url: if curl_url_get() fails due to OOM, error out properly

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/url.c+2 -1
@@ -1919,7 +1919,8 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data,
uc = curl_url_get(uh, CURLUPART_PORT, &data->state.up.port,
CURLU_DEFAULT_PORT);
if(uc) {
- if(!curl_strequal("file", data->state.up.scheme))
+ if((uc == CURLUE_OUT_OF_MEMORY) ||
+ !curl_strequal("file", data->state.up.scheme))
return CURLE_OUT_OF_MEMORY;
}
else {