]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix Tokenizer::int64() parsing of "0" when guessing base (#1842)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 7 Jul 2024 03:03:00 +0000 (03:03 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 7 Jul 2024 07:16:28 +0000 (07:16 +0000)
commit8cc5e88c7fb0d73ce413d1871641b93403d1ea1a
tree05b71f8651580bfec49c5eae9daeed6c4485dc0b
parent314e43047145123e0ea018186445fd720ba6107c
Fix Tokenizer::int64() parsing of "0" when guessing base (#1842)

Known bug victims in current code were tcp_outgoing_mark,
mark_client_packet, clientside_mark, and mark_client_connection
directives as well as client_connection_mark and (deprecated)
clientside_mark ACLs if they were configured to match a zero mark using
"0" or "0/..." syntax:

    ERROR: configuration failure: NfMarkConfig: invalid value '0/10'...
    exception location: NfMarkConfig.cc(23) getNfmark

Probably broken since 2014 commit 01f2137d.
src/parser/Tokenizer.cc
src/tests/testTokenizer.cc