]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Add memory output constraints for big-integer inline assembly 373/head
authorMichael Brown <mcb30@ipxe.org>
Thu, 3 Jun 2021 12:34:14 +0000 (13:34 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 3 Jun 2021 12:34:14 +0000 (13:34 +0100)
commitf3f568e382a5f19824b3bfc6081cde39eee661e8
treedddfc61b0b5e1674ca731ba39d79ec6e45f316dc
parent74c54461cbb67e5ba20fc8119982a09121221853
[crypto] Add memory output constraints for big-integer inline assembly

The ARM versions of the big-integer inline assembly functions include
constraints to indicate that the output value is modified by the
assembly code.  These constraints are not present in the equivalent
code for the x86 versions.

As of GCC 11, this results in the compiler reporting that the output
values may be uninitialized.

Fix by including the relevant memory output constraints.

Reported-by: Christian Hesse <mail@eworm.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/core/x86_bigint.c
src/arch/x86/include/bits/bigint.h