[openssl-commits] [openssl] master update
Andy Polyakov
appro at openssl.org
Thu Aug 11 11:48:43 UTC 2016
The branch master has been updated
via a5a95f8d65c2c616ebee13ae4b33eacde34bb2d3 (commit)
from 7123aa81e9fb19afb11fdf3850662c5f7ff1f19c (commit)
- Log -----------------------------------------------------------------
commit a5a95f8d65c2c616ebee13ae4b33eacde34bb2d3
Author: Andy Polyakov <appro at openssl.org>
Date: Thu Aug 4 21:06:53 2016 +0200
crypto/sparcv9cap.c: fix overstep in getisax.
Problem was introduced in 299ccadcdb99001c618d188fb243c1caaaa86a1c
as future extension, i.e. at this point it wasn't an actual problem,
because uninitialized capability bit was not actually used.
Reviewed-by: Tim Hudson <tjh at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
crypto/sparcv9cap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crypto/sparcv9cap.c b/crypto/sparcv9cap.c
index 92841ce..093c5eb 100644
--- a/crypto/sparcv9cap.c
+++ b/crypto/sparcv9cap.c
@@ -164,9 +164,9 @@ void OPENSSL_cpuid_setup(void)
#if defined(__sun) && defined(__SVR4)
if (getisax != NULL) {
- unsigned int vec[1];
+ unsigned int vec[2] = { 0, 0 };
- if (getisax (vec,1)) {
+ if (getisax (vec,2)) {
if (vec[0]&0x00020) OPENSSL_sparcv9cap_P[0] |= SPARCV9_VIS1;
if (vec[0]&0x00040) OPENSSL_sparcv9cap_P[0] |= SPARCV9_VIS2;
if (vec[0]&0x00080) OPENSSL_sparcv9cap_P[0] |= SPARCV9_BLK;
More information about the openssl-commits
mailing list