Avoid some buffer overflows in ecdsatest
authortb <tb@openbsd.org>
Wed, 31 Aug 2022 09:38:00 +0000 (09:38 +0000)
committertb <tb@openbsd.org>
Wed, 31 Aug 2022 09:38:00 +0000 (09:38 +0000)
commitf430d62b4fe075df6845f568cfe89f342a413eae
tree6cf6f9ddc408e30c62b09a7c234dc11a294c47b2
parent219eb160a5f348c39b9f4dafdc2c37059ce8ff06
Avoid some buffer overflows in ecdsatest

The ASN.1 encoding of the modified ECDSA signature can grow in size due to
padding of the ASN.1 integers. Instead of reusing the same signature buffer
freshly allocate it. Avoids some buffer overflows caught by ASAN.
regress/lib/libcrypto/ecdsa/ecdsatest.c