X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmulatorPkg%2FUnix%2FHost%2FEmuThunk.c;fp=EmulatorPkg%2FUnix%2FHost%2FEmuThunk.c;h=b8b0651c6ab00dbf4a2eb7c657dc1932bc75734d;hp=1e9dc99187dbced7555ae801b0b7ec8d7f953370;hb=26cfe2c659348da1bcfde15624e002f751608a87;hpb=de949fdbcf38cade52c98b8f89d9ab88d2db0b47 diff --git a/EmulatorPkg/Unix/Host/EmuThunk.c b/EmulatorPkg/Unix/Host/EmuThunk.c index 1e9dc99187..b8b0651c6a 100644 --- a/EmulatorPkg/Unix/Host/EmuThunk.c +++ b/EmulatorPkg/Unix/Host/EmuThunk.c @@ -6,7 +6,7 @@ The mUnixThunkTable exists so that a change to EFI_EMU_THUNK_PROTOCOL will cause an error in initializing the array if all the member functions are not added. It looks like adding a element to end and not initializing - it may cause the table to be initaliized with the members at the end being + it may cause the table to be initialized with the members at the end being set to zero. This is bad as jumping to zero will crash. Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.