diff options
| author | Oliver Steffen <osteffen@redhat.com> | 2025-11-05 20:35:16 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-11-21 19:33:06 +0300 |
| commit | 56f2d5890840aa92e714e056706223f113063cc8 (patch) | |
| tree | f87d65b6bedc87b644c925c39a9f73a4304810f2 /BaseTools/Source/Python/Workspace/DscBuildData.py | |
| parent | 9ff73832ea0440b86fa0dfa42158fce1ef3b57d2 (diff) | |
| download | edk2-56f2d5890840aa92e714e056706223f113063cc8.tar.xz | |
SecurityPkg/SpdmSecurityLib: Fix incompatible pointer types
GCC 15 enforces stricter type checking for function pointers. When
passing SPDM transport layer callbacks to
libspdm_register_transport_layer_func, the function pointer types are
incompatible due to differences in boolean parameter types.
The EDK2 uses BOOLEAN (UINT8) while libspdm uses C99 bool (_Bool).
Although these types have the same size and representation,
GCC 15 treats them as incompatible.
Add explicit casts to libspdm_transport_encode_message_func and
libspdm_transport_decode_message_func at the call site to resolve
the type mismatch. This is safe as the types have identical binary
representation and the functions are only called through these
pointers by libspdm.
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
(cherry picked from commit aca8f995405b2bdc48997ce5b0daa975225164e6)
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DscBuildData.py')
0 files changed, 0 insertions, 0 deletions
