bn/asm/x86_64-mont5.pl: fix valgrind error.
authorAndy Polyakov <appro@openssl.org>
Wed, 20 May 2015 07:36:48 +0000 (09:36 +0200)
committerAndy Polyakov <appro@openssl.org>
Sun, 24 May 2015 19:31:49 +0000 (21:31 +0200)
commit0a59e2dc308e6d6a7078e6b3e4e714101a2db538
tree523ddd60385b854dca782f493c2334fd9b1fd6e4
parent0945bfcb22f1df1d89e84973f175a620adab4f0d
bn/asm/x86_64-mont5.pl: fix valgrind error.

bn_get_bits5 was overstepping array boundary by 1 byte. It was exclusively
read overstep and data could not have been used. The only potential problem
would be if array happens to end on the very edge of last accesible page.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 69567687b0b7ed67831c17a010f4d46dfd059aef)
crypto/bn/asm/x86_64-mont5.pl