bn_nist: fix strict aliasing problem
authorPauli <pauli@openssl.org>
Fri, 6 May 2022 06:59:26 +0000 (16:59 +1000)
committerHugo Landau <hlandau@openssl.org>
Wed, 17 Aug 2022 15:44:45 +0000 (16:44 +0100)
commit6246649d657127a031782b29ba6132a4203260b2
tree5383c5b7249b33d9f574562762493cc807af2669
parentd87e99df3162b2d56b8d44907fde88b67d7e3900
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@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18948)
crypto/bn/bn_nist.c