]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 3845: http_port tcpkeepalive= option fails parsing
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 May 2013 13:14:23 +0000 (07:14 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 May 2013 13:14:23 +0000 (07:14 -0600)
commite398d16eae1db99161afbb513ab4f2665a9584e5
treecd11eb5fe8b2f900fa55291b569fbc6cd65118bc
parentc0e8c76f93274e7b0e14614a403ee7f0e4ee7f99
Bug 3845: http_port tcpkeepalive= option fails parsing

The stricter xato*() parsing bounds checks are halting on the ','
delimiters. Fix this by adding an optional end-of-value parameter to the
relevant parse functions and sending the delimiter in.

This fix makes xatoui() and xatoll() more friendly to parsing
unterminated strings.

previous to this fix the latter two values of tcpkeepalive= were
undocumented optional. This makes Squid enforce the documented format
where all three values are required if any is set.
src/Parsing.cc
src/Parsing.h
src/cache_cf.cc