[openssl/openssl] ee17dc: Fix possible UB in init_info_strings

Bernd Edlinger noreply at github.com
Thu Dec 22 11:09:07 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: ee17dcc7ffbd6621f82838c75792f19aa97bd5d7
      https://github.com/openssl/openssl/commit/ee17dcc7ffbd6621f82838c75792f19aa97bd5d7
  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)




More information about the openssl-commits mailing list