From 03131de30e71d759aceb301da1607278cc43e27d Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 27 Jun 2011 20:27:29 +0000 Subject: [PATCH] Make sure size is correct. signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11896 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c index 3dbf68e5a9..d4bb6217b0 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c @@ -113,6 +113,7 @@ ShellCommandRunEfiCompress ( ASSERT_EFI_ERROR(Status); InBuffer = AllocateZeroPool((UINTN)InSize); ASSERT(InBuffer != NULL); + InSize2 = (UINTN)InSize; Status = gEfiShellProtocol->ReadFile(InShellFileHandle, &InSize2, InBuffer); InSize = InSize2; ASSERT_EFI_ERROR(Status); -- 2.39.2