]> git.ipfire.org Git - thirdparty/squid.git/commit
Fixed Parser::Tokenizer::prefix() to return false on all empty prefixes.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 11 Aug 2014 17:14:15 +0000 (11:14 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 11 Aug 2014 17:14:15 +0000 (11:14 -0600)
commit1d53a60aae678005c7f133352ef42f85e0f5e785
tree50a1dc9553ae4f4b922c2f9222af089dfa4f199c
parentb3cb9958457df8c623387c426359e5bce58c84e4
Fixed Parser::Tokenizer::prefix() to return false on all empty prefixes.

The code was returning true and sometimes even setting the returnedToken
to a non-empty string when no permitted tokenChars were found.

Added unit test cases to catch similar bugs in the future.
src/parser/Tokenizer.cc
src/parser/testTokenizer.cc