diff options
| author | Luigi Leonardi <leonardi@redhat.com> | 2026-06-30 14:28:35 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-07-20 14:57:09 +0300 |
| commit | 99942e353274d6a4641c71e21399cd4ab0feca11 (patch) | |
| tree | a4f3cd34344b6df3a3851409dec2dc93cf7bc453 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | |
| parent | 5dc785e7f664af82f06e9d450df398618edd0396 (diff) | |
| download | edk2-99942e353274d6a4641c71e21399cd4ab0feca11.tar.xz | |
OvmfPkg/VirtMmCommunicationDxe: Fix NULL dereference of optional CommSize
VirtMmCommunication2Communicate() dereferences *CommSize in a DEBUG
statement before checking whether CommSize is NULL. CommSize is an
optional parameter, so callers may legitimately pass NULL, causing a
NULL pointer dereference in debug builds.
Guard the dereference with a ternary so the DEBUG prints 0 when
CommSize is NULL.
Fixes: 9dd47eeea1 ("OvmfPkg: add new VirtMmCommunicationDxe driver")
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions
