← Commit list

0d2bb9c7c6

Daniel Stenberg
Daniel Stenberg
2025-11-26
SUCCESS Duration: 149s

Subject

http: fix OOM exit in Curl_http_follow

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/http.c+1 -1
@@ -1282,7 +1282,7 @@ CURLcode Curl_http_follow(struct Curl_easy *data, const char *newurl,
CURLU_ALLOW_SPACE |
(data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
if(uc) {
- if(type != FOLLOW_FAKE) {
+ if((uc == CURLUE_OUT_OF_MEMORY) || (type != FOLLOW_FAKE)) {
failf(data, "The redirect target URL could not be parsed: %s",
curl_url_strerror(uc));
return Curl_uc_to_curlcode(uc);