← Commit list

e0038e1096

Viktor Szakats
Viktor Szakats
2026-03-21
SUCCESS Duration: 265s

Subject

tool_operhlp: propagate low-level OOM in `add_file_name_to_url()`

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 →

src/tool_operhlp.c+4 -0
@@ -102,6 +102,10 @@ CURLcode add_file_name_to_url(CURL *curl, char **inurlp, const char *filename)
goto out;
}
uerr = curl_url_get(uh, CURLUPART_QUERY, &query, 0);
+ if(uerr == CURLUE_OUT_OF_MEMORY) {
+ result = urlerr_cvt(uerr);
+ goto out;
+ }
if(!uerr && query) {
curl_free(query);
result = CURLE_OK;