Fix Coverity 1498612: integer overflow
authorPauli <pauli@openssl.org>
Wed, 16 Mar 2022 03:13:25 +0000 (14:13 +1100)
committerPauli <pauli@openssl.org>
Fri, 25 Mar 2022 06:32:10 +0000 (17:32 +1100)
commit8ae3d248ad25fb986b30b67de72b4006869c8965
treea864d3e4cd2f2dad322ede13c75cd84c4728f3ae
parentef8312480e5c21495f43740b8522459aa8cf9a79
Fix Coverity 1498612: integer overflow

The assert added cannot ever fail because (current & 0xFFFF) != 0 from the
while loop and the trailing zero bit count therefore cannot be as large as 32.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/17892)

(cherry picked from commit 81487b65b9eb8148471e729b8c1959521d62c69e)
crypto/ec/curve448/curve448.c