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)
committerJanusz Kozerski <j.kozerski@samsung.com>
Mon, 20 Oct 2014 13:25:31 +0000 (15:25 +0200)
commit6e4ff4d7f43433dd2dcb2cc7394a21096f5b74d7
treec0ec989ec7aac8466dc9b1cf667d5e205a42b234
parentbdc3b5e6efcbf6d7997f22f3d0d67314ee86ee35
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

(cherry picked from commit 77747e2d9a5573b1dbc15e247ce18c03374c760c)
crypto/bn/bn_lib.c