Fix possible UB in init_info_strings
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 13 Nov 2022 20:34:16 +0000 (21:34 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Dec 2022 11:06:38 +0000 (12:06 +0100)
commitee17dcc7ffbd6621f82838c75792f19aa97bd5d7
tree7f77e20f5cfe6011891722b8c1642ed50bc71a0f
parente64a169fc678b5e57db28d06c25020d69bc61e4c
Fix possible UB in init_info_strings

"openssl version -c" may create undefined behavior in the shift:

crypto/info.c:42:50: runtime error: left shift of 4275712515
by 32 places cannot be represented in type 'long long int'

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19668)
crypto/info.c