]> git.ipfire.org Git - thirdparty/curl.git/commit
altsvc: only accept 17 byte dates from files
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jan 2026 07:05:49 +0000 (08:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jan 2026 12:49:57 +0000 (13:49 +0100)
commit31fbbb322efbc0e4a8d31c270b6b82e117fc7345
treef29a9c7a85dba3c743003b55d8768e26854043d6
parent40fee505a03b357a7a9869317437fff9e16d8ba7
altsvc: only accept 17 byte dates from files

Since the date format is fixed there is no need to accept more data.

Update test355 to verify reject of too long date in alt-svc file

This test case was originally supposed to verify alt-svc loading from a
file but never did because it was done incorrectly.

Now it verifies that a too long date in the input file makes curl
disregard the entry.

Closes #20259
lib/altsvc.c
tests/data/test355