]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix parsing of certificate validator responses (#452)
authorChristos Tsantilas <christos@chtsanti.net>
Fri, 9 Aug 2019 04:18:37 +0000 (04:18 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 10 Aug 2019 09:35:57 +0000 (09:35 +0000)
If a certificate validator did not end its response with an end-of-line
or whitespace character, then Squid, while parsing the response,
accessed the bytes after the end of the buffer where the response is
stored.

This is a Measurement Factory project.

src/ssl/cert_validate_message.cc

index 3f250dd044c59321310bbcd1da0a3e8e1234a113..deec6518db81ed62cdef4081752cf3ead60f6c41 100644 (file)
@@ -171,7 +171,7 @@ Ssl::CertValidationMsg::parseResponse(CertValidationResponse &resp, std::string
             return false;
         }
 
-        param = value + value_len +1;
+        param = value + value_len;
     }
 
     /*Run through parsed errors to check for errors*/