← Commit list

31fbbb322e

Daniel Stenberg
Daniel Stenberg
2026-01-12
SUCCESS Duration: 523s

Subject

altsvc: only accept 17 byte dates from files

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/altsvc.c+1 -1
@@ -39,7 +39,7 @@
#include "connect.h"
#define MAX_ALTSVC_LINE 4095
-#define MAX_ALTSVC_DATELEN 256
+#define MAX_ALTSVC_DATELEN 17
#define MAX_ALTSVC_HOSTLEN 2048
#define MAX_ALTSVC_ALPNLEN 10
tests/data/test355+7 -3
@@ -25,18 +25,22 @@ Funny-head: yesyes
<client>
<features>
alt-svc
+Debug
</features>
+<setenv>
+CURL_ALTSVC_HTTP=1
+</setenv>
<server>
http
</server>
<name>
-load Alt-Svc from file and use
+Alt-Svc from file with too long date
</name>
<command>
-http://%HOSTIP:%HTTPPORT/%TESTNUMBER --alt-svc ""
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER --alt-svc "%LOGDIR/altsvc-%TESTNUMBER"
</command>
<file name="%LOGDIR/altsvc-%TESTNUMBER">
-h1 example.com 80 h1 %HOSTIP %HTTPPORT "20290222 22:19:28" 0 0
+h1 %HOSTIP %HTTPPORT h1 example.com 80 "20290222 22:19:028" 0 0
</file>
</client>