12 lines
494 B
Diff
12 lines
494 B
Diff
|
diff -urpN openssl-ibmca-1.0.0-rc2/e_ibmca.c openssl-ibmca-1.0.0-rc2-memset_fix/e_ibmca.c
|
||
|
--- openssl-ibmca-1.0.0-rc2/e_ibmca.c 2007-01-22 17:23:20.000000000 +0100
|
||
|
+++ openssl-ibmca-1.0.0-rc2-memset_fix/e_ibmca.c 2007-01-22 17:27:09.000000000 +0100
|
||
|
@@ -1858,6 +1858,7 @@ static int ibmca_mod_exp_crt(BIGNUM * r,
|
||
|
IBMCA_R_UNDERFLOW_CONDITION);
|
||
|
goto err;
|
||
|
}
|
||
|
+ memset(argument, 0, pbytes + qbytes);
|
||
|
BN_bn2bin(a, ((unsigned char *)argument
|
||
|
+ outLen
|
||
|
- BN_num_bytes(a)));
|