From 4691be3f4734ed10d87603940cbb27dbc93c30af Mon Sep 17 00:00:00 2001 From: MikhailKrichanov <65890930+MikhailKrichanov@users.noreply.github.com> Date: Mon, 7 Nov 2022 11:13:00 +0300 Subject: [PATCH] OpenLinuxBoot: Fixed memory access (#393) --- Platform/OpenLinuxBoot/Autodetect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platform/OpenLinuxBoot/Autodetect.c b/Platform/OpenLinuxBoot/Autodetect.c index 72aa77c0..ab4cc9a9 100644 --- a/Platform/OpenLinuxBoot/Autodetect.c +++ b/Platform/OpenLinuxBoot/Autodetect.c @@ -182,7 +182,7 @@ CreateRootPartuuid ( return EFI_OUT_OF_RESOURCES; } - NumPrinted = AsciiSPrint (*Dest, Length + 1, "%a%g", "root=PARTUUID=", gPartuuid); + NumPrinted = AsciiSPrint (*Dest, Length + 1, "%a%g", "root=PARTUUID=", &gPartuuid); ASSERT (NumPrinted == Length); // @@ -450,7 +450,7 @@ InsertRootOption ( DEBUG (( (gLinuxBootFlags & LINUX_BOOT_LOG_VERBOSE) == 0 ? DEBUG_VERBOSE : DEBUG_INFO, "LNX: Creating \"root=PARTUUID=%g\"\n", - gPartuuid + &gPartuuid )); NewOption = OcFlexArrayInsertItem (Options, 0); -- GitLab