bn2binpad: Use memset as the buffer will be used later
authorTomas Mraz <tomas@openssl.org>
Wed, 8 Dec 2021 17:26:03 +0000 (18:26 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 13 Dec 2021 10:32:39 +0000 (11:32 +0100)
commit858d5ac16d256db24f78b8c84e723b7d34c8b1ea
treeffb583823b99613a39ff925bada8ade242c26f2e
parent61fa00a4d03f6808389bc1847937f72d184f0627
bn2binpad: Use memset as the buffer will be used later

Apparently using OPENSSL_cleanse() confuses the fuzzer so it
makes the buffer to appear uninitialized. And memset can be
safely used here and it is also potentially faster.

Fixes #17237

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/17240)
crypto/bn/bn_lib.c