commit | e98011f315549fc29c6fd5ab31d5ce38dfa361a4 | [log] [tgz] |
---|---|---|
author | Scott Cantor <scantor@apache.org> | Thu Aug 04 13:26:20 2022 +0000 |
committer | Scott Cantor <scantor@apache.org> | Thu Aug 04 13:26:20 2022 +0000 |
tree | 9ba576022552e4dcf2ffd5992f36f95b4feda22d | |
parent | 692d01a792f13397c496f350b14f4017c4c03a65 [diff] |
SANTUARIO-591 - Invalid read, possible buffer overflow https://issues.apache.org/jira/browse/SANTUARIO-591 git-svn-id: https://svn.apache.org/repos/asf/santuario/xml-security-cpp/trunk@1903226 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/xsec/enc/OpenSSL/OpenSSLCryptoX509.cpp b/xsec/enc/OpenSSL/OpenSSLCryptoX509.cpp index 342ad96..bad040f 100644 --- a/xsec/enc/OpenSSL/OpenSSLCryptoX509.cpp +++ b/xsec/enc/OpenSSL/OpenSSLCryptoX509.cpp
@@ -163,8 +163,8 @@ } - m_DERX509.sbStrcpyIn(buf); - + m_DERX509.sbMemcpyIn(buf, len); + m_DERX509[len] = '\0'; } // Info functions