]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4748: r15240 broke IP-based URLs, twice. (#41)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 21 Aug 2017 23:32:29 +0000 (17:32 -0600)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2017 23:32:29 +0000 (17:32 -0600)
commit9770c5feb0aae6d65f2361d34dee654f80ad81f0
tree6f0d675757c94d03ce39bfa4167fe0410ea7e2d2
parentb1268cb4604b5baab9a33db4202d6b3c464ac56d
Bug 4748: r15240 broke IP-based URLs, twice. (#41)

r15240 broke ipcacheCheckNumeric() because that function's static
storage was no longer reset properly between calls.

This bug is very different from bug 4741, but their symptoms (e.g.,
false "Host header forgery" SECURITY ALERTs) can be the same.

I did not realize that std::vector::resize(n, x) ignores x when the
vector size is already at least n. It is not a reset()-like method. My
tests did not have enough different IP-based URLs to expose this bug.
src/ipcache.cc