Fixed valgrind complaint due to BN_consttime_swap reading uninitialised data.
authorMatt Caswell <matt@openssl.org>
Thu, 10 Jul 2014 22:47:31 +0000 (23:47 +0100)
committerMatt Caswell <matt@openssl.org>
Sun, 13 Jul 2014 21:17:39 +0000 (22:17 +0100)
commitf8571ce82292ed340ed6302635f9bd6dfbc1043a
treec14cc9f259656a96a0d4ea7a695f84f0d21bea62
parent924e5eda2c82d737cc5a1b9c37918aa6e34825da
Fixed valgrind complaint due to BN_consttime_swap reading uninitialised data.
This is actually ok for this function, but initialised to zero anyway if
PURIFY defined.

This does have the impact of masking any *real* unitialised data reads in bn though.

Patch based on approach suggested by Rich Salz.

PR#3415
crypto/bn/bn_lib.c