]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug #2541: Hang in 100% CPU loop while extacting header details using a delimiter...
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 20 Aug 2009 12:13:35 +0000 (14:13 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 20 Aug 2009 12:13:35 +0000 (14:13 +0200)
commitf26664fd2e3ce1aa998efb58104d8102f06e3e04
treeeb1af9f9e75c35cb5c5b479cd465278c94c2b54e
parenteae4ca587c80d42d6a4fd633df50e86e43f8dfed
Bug #2541: Hang in 100% CPU loop while extacting header details using a delimiter other than comma (external_acl_type, access_log_format, external_refresh_check)

strListGetItem() could get stuck in a 100% loop if called with a delimiter
other than ',' and the parsed string contains ','.

This change makes it properly detect ',' as a delimiter even if called
with another delimiter argument like intended. The reason why ',' is always
a delimiter is because this is the delimiter between merged values of a
multi-valued header, and must always be supported as delimiter even if
Cookie uses ';' instead.
src/HttpHeaderTools.cc