[openssl/openssl] 624664: bn_nist: fix strict aliasing problem

Pauli noreply at github.com
Wed Aug 17 15:47:00 UTC 2022


  Branch: refs/heads/OpenSSL_1_1_1-stable
  Home:   https://github.com/openssl/openssl
  Commit: 6246649d657127a031782b29ba6132a4203260b2
      https://github.com/openssl/openssl/commit/6246649d657127a031782b29ba6132a4203260b2
  Author: Pauli <pauli at openssl.org>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

  Changed paths:
    M crypto/bn/bn_nist.c

  Log Message:
  -----------
  bn_nist: fix strict aliasing problem

As of clang-14 the strict aliasing is causing code to magically disappear.
By explicitly inlining the code, the aliasing problem evaporates.

Fixes #18225

Backport of #18258 to 1.1.1.

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18948)




More information about the openssl-commits mailing list