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:58:06 +0000 (17:58 +0200)
commit5156ecbe691c964ae528c74f94d5b515aeb25542
treef1dc99b276e6c00d0acf6e48a6a97552173d461a
parente11072908742e96a1067bb1b9609bfc27ab05835
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)

(cherry picked from commit 1d05eb55caa8965a151360c2469c463ecd990987)
crypto/bn/bn_mpi.c