Avoid some buffer overflows in ecdsatest
authortb <tb@openbsd.org>
Wed, 31 Aug 2022 09:33:39 +0000 (09:33 +0000)
committertb <tb@openbsd.org>
Wed, 31 Aug 2022 09:33:39 +0000 (09:33 +0000)
commit720093129ad69d2a77212615d73b17427db35a01
treef787d02dfb6e43aee56c9c3eadf38cb8d7995be3
parentc4141b1c020ca218af9b5d9cdb6363d6a601b654
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