← Commit list

6dac2631df

Daniel Stenberg
Daniel Stenberg
2025-11-18
SUCCESS Duration: 157s

Subject

url: if OOM in parse_proxy() return error

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+5 -1
@@ -2285,7 +2285,11 @@ static CURLcode parse_proxy(struct Curl_easy *data,
conn->bits.proxy_user_passwd = TRUE; /* enable it */
}
- (void)curl_url_get(uhp, CURLUPART_PORT, &portptr, 0);
+ uc = curl_url_get(uhp, CURLUPART_PORT, &portptr, 0);
+ if(uc == CURLUE_OUT_OF_MEMORY) {
+ result = CURLE_OUT_OF_MEMORY;
+ goto error;
+ }
if(portptr) {
curl_off_t num;