]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Regression Bug 3077: off-by-one error in Digest header decoding
authorJan Sievers <sievers@zedat.fu-berlin.de>
Thu, 15 Aug 2013 21:28:14 +0000 (15:28 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 15 Aug 2013 21:28:14 +0000 (15:28 -0600)
This is a regression in the 3.2 and later version of the original bug
fix patch.

The effect is that all attributes are treated as quoted-string values
with unescaping performed. This ends with credentials wrongly being
rejected as invalid.

src/auth/digest/auth_digest.cc

index a51ff5b6d1916357b65240ba978d4e272c2dc6f8..f9609c842a1818f7673835db3a49e5e0d6a67c46 100644 (file)
@@ -816,7 +816,7 @@ Auth::Digest::Config::decode(char const *proxy_auth)
             vlen = 0;
         }
 
-        StringArea keyName(item, nlen-1);
+        StringArea keyName(item, nlen);
         String value;
 
         if (vlen > 0) {