]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix undefined behaviour in EC_GROUP_new_from_ecparameters
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 20 May 2022 14:54:41 +0000 (16:54 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 24 May 2022 09:47:37 +0000 (11:47 +0200)
commite4b84b7514e5cbcbfc80e31b4ce609c7584e14bb
tree5a666101d6a8cbacbd3841656620f3c84315919e
parent8e1ece20cdb4a584be5311370256c4e813c09826
Fix undefined behaviour in EC_GROUP_new_from_ecparameters

This happens for instance with
fuzz/corpora/asn1/65cf44e85614c62f10cf3b7a7184c26293a19e4a
and causes the OPENSSL_malloc below to choke on the
zero length allocation request.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18363)
crypto/ec/ec_asn1.c