]> git.ipfire.org Git - thirdparty/squid.git/commit
Protect String::limitInit() against empty strings.
authoramosjeffries <>
Thu, 24 Jan 2008 03:51:16 +0000 (03:51 +0000)
committeramosjeffries <>
Thu, 24 Jan 2008 03:51:16 +0000 (03:51 +0000)
commit4fbc2a54bc1c473a1dfd5db67db8eb88a322fbe5
tree57a8fb91880ea3112e8e81acdd1b22b127139bbb
parentdcb1fef87a4e9ea84e11b815956a0f55e82a99ca
Protect String::limitInit() against empty strings.

Is being caleld at least once in squid3 with a NULL ptr and 0 length.
This patch prevents memory allocation on 0 length and a will continue
to assert if a NULL pointer is given with a length.
(We may want to re-think that later)
src/String.cc