added test over signature size to avoid possible memory corruption (Anonymous source)

This commit is contained in:
Cyril Soler 2016-05-17 10:39:56 -04:00
parent 116e7422b9
commit f3aed813af

View File

@ -991,6 +991,11 @@ bool AuthSSLimpl::AuthX509WithGPG(X509 *x509,uint32_t& diagnostic)
#endif
/* copy data into signature */
if(sigoutl < signature->length)
{
diagnostic = RS_SSL_HANDSHAKE_DIAGNOSTIC_MALLOC_ERROR ;
goto err;
}
sigoutl = signature->length;
memmove(buf_sigout, signature->data, sigoutl);