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

pauli noreply at reply.github.openssl.org
Tue May 10 09:39:34 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: d8a3b6edcb83abda46aea30d074aa2b7c81794e7
      https://github.openssl.org/openssl/openssl/commit/d8a3b6edcb83abda46aea30d074aa2b7c81794e7
  Author: Pauli <pauli at openssl.org>
  Date:   2022-05-10 (Tue, 10 May 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

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18258)

(cherry picked from commit 8712db5e4e0c508de10e887aebf639384dc20710)




More information about the openssl-commits mailing list