Add a test for underflow in ecp_nistp521.c
authorMatt Caswell <matt@openssl.org>
Wed, 6 Mar 2019 11:51:28 +0000 (11:51 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 7 Mar 2019 14:47:39 +0000 (14:47 +0000)
commitacd9b16b01ad4bda015102d9ce1fa34efa15359d
tree95ef84eb43eb14eac42ed01dc4baf61b24a42ddd
parentd49b8889108c66b43923232a1457e4920270845f
Add a test for underflow in ecp_nistp521.c

The previous commit fixed an underflow that may occur in ecp_nistp521.c.
This commit adds a test for that condition. It is heavily based on an
original test harness by Billy Brumley.

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/8405)

(cherry picked from commit 6855b496b205c067ecb276221c31c6212f4fdbae)
test/ectest.c