← Commit list

445aa87e13

Daniel Stenberg
Daniel Stenberg
2026-09-16
SUCCESS Duration: 385s

Subject

cookie: accept slightly longer lines in cookie jars

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/cookie.c+3 -1
@@ -1181,7 +1181,9 @@ static CURLcode cookie_load(struct Curl_easy *data, const char *file,
if(fp) {
struct dynbuf buf;
bool eof = FALSE;
- curlx_dyn_init(&buf, MAX_COOKIE_LINE);
+ /* accept a little longer lines so that a full cookie fits and does not
+ abort the file read */
+ curlx_dyn_init(&buf, MAX_COOKIE_LINE + 48);
do {
result = Curl_get_line(&buf, fp, &eof);
if(!result) {