[openssl/openssl] b49d8d: Fix possible UB in init_info_strings
Bernd Edlinger
noreply at github.com
Thu Dec 22 11:10:03 UTC 2022
Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: b49d8da7745477bde6e9598ed87524e1afe1829c
https://github.com/openssl/openssl/commit/b49d8da7745477bde6e9598ed87524e1afe1829c
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: 2022-12-22 (Thu, 22 Dec 2022)
Changed paths:
M crypto/info.c
Log Message:
-----------
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 at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19668)
(cherry picked from commit ee17dcc7ffbd6621f82838c75792f19aa97bd5d7)
More information about the openssl-commits
mailing list