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:46:46 +0000 (14:46 +0000)
commit6855b496b205c067ecb276221c31c6212f4fdbae
treef6c6e1023ade255b44e88ed4f484cb6f14254e0e
parent13fbce17fc9f02e2401fc3868f3f8e02d6647e5f
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)
test/ectest.c