]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix the error handling in EC_POINTs_mul
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 6 Apr 2020 08:41:36 +0000 (10:41 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 7 Apr 2020 11:21:13 +0000 (13:21 +0200)
commit1eb9b54af7e00fa12196411964ce742ea8677766
tree76c5d90d1a031b3ac7446e311062035929ba62b3
parentd803930448476c3a6c50904b1cfb5ef20433652f
Fix the error handling in EC_POINTs_mul

This was pointed out by a false-positive
-fsanitizer warning ;-)

However from the cryptographical POV the
code is wrong:
A point R^0 on the wrong curve
is infinity on the wrong curve.

[extended tests]

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/11475)
crypto/ec/ec_lib.c