Skip to content

Commit 3e24c0f

Browse files
committed
fix: uninitialized values for TE fileSize and size
1 parent 67c2e91 commit 3e24c0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Platforms/AndromedaPkg/Library/QcSecProtocolsLocatorSecLib/QcSecProtocolsLocatorSecLib.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ EFI_STATUS FindTeAddr(TE_INFO_STRUCT *TEInfo)
6767
// Store Address
6868
TEInfo->TEBuffer = (VOID *)SecurityCoreAddress;
6969
TEInfo->programBuffer = (VOID *)ProgramBufferAddress;
70+
71+
// TODO: Fix this properly! - For now we use a generous size
72+
UINTN len = 0x40000;
73+
74+
TEInfo->fileSize = len;
75+
TEInfo->teSize = len - sizeof(EFI_TE_IMAGE_HEADER);
7076
goto exitLoop;
7177
}
7278
}

0 commit comments

Comments
 (0)