diff options
author | Ben Laurie <ben@openssl.org> | 2008-12-29 13:35:08 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-12-29 13:35:08 +0000 |
commit | 8aa02e97a782a4229936d5df6da42db3efe4acd1 (patch) | |
tree | d67dece655c6dd51266db6482dcbe268d21bb008 /ssl/s3_pkt.c | |
parent | a68c7b9171df3814b111eb467ef308617ea05463 (diff) |
Make sure a bad parameter to RSA_verify_PKCS1_PSS() doesn't lead to a crash.
(Coverity ID 135).
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r-- | ssl/s3_pkt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 561ba5cf25..330918a78a 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -412,6 +412,7 @@ printf("\n"); if (!clear) { + /* !clear => s->read_hash != NULL => mac_size != -1 */ mac_size=EVP_MD_CTX_size(s->read_hash); if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+extra+mac_size) |