← Commit list

133b125b89

Daniel Stenberg
Daniel Stenberg
2026-03-12
SUCCESS Duration: 291s

Subject

http: make Curl_compareheader handle multiple commas in header

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+5 -1
@@ -1449,7 +1449,11 @@ bool Curl_compareheader(const char *headerline, /* line to check */
if(curlx_str_until(&p, &next, MAX_HTTP_RESP_HEADER_SIZE, ',') ||
curlx_str_single(&p, ','))
break; /* no comma, get out */
- curlx_str_passblanks(&p);
+
+ /* if there are more dummy commas, move over them as well */
+ do
+ curlx_str_passblanks(&p);
+ while(!curlx_str_single(&p, ','));
len -= (p - o);
}
}