]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid potential overflow to the sign bit when shifting left 24 places
authorTomas Mraz <tmraz@fedoraproject.org>
Tue, 19 May 2020 08:51:53 +0000 (10:51 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Wed, 20 May 2020 15:31:43 +0000 (17:31 +0200)
commit1d05eb55caa8965a151360c2469c463ecd990987
tree7169299eedcf8781482028547e220ea2cae60b13
parentcbeb0bfa961412eebfbdf1e72900f05527e81e15
Avoid potential overflow to the sign bit when shifting left 24 places

Although there are platforms where int is 64 bit, 2GiB large BIGNUMs
instead of 4GiB should be "big enough for everybody".

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11857)
crypto/bn/bn_mpi.c