audk/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe
Roman Bacik 79b10d4ce4 SecurityPkg: Fix assert when setting key from eMMC/SD/USB
When secure boot is enabled, if one loads keys from a FAT formatted
eMMC/SD/USB when trying to provision PK/KEK/DB keys via the menu,
an assert in StrLen() occurs.
This is because the filename starts on odd address, which is not a uint16
aligned boundary: https://bugzilla.tianocore.org/show_bug.cgi?id=1003

There are further known issues with the OpenFileByDevicePath() function;
those are tracked by
<https://bugzilla.tianocore.org/show_bug.cgi?id=1008>.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Roman Bacik <roman.bacik@broadcom.com>
Reviewed-by: "Yao, Jiewen" <jiewen.yao@intel.com>
[lersek@redhat.com: whitespace fixes]
[lersek@redhat.com: reference TianoCore BZ#1008]
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2018-07-12 23:33:56 +02:00
..
SecureBootConfig.vfr SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
SecureBootConfigDevicePath.c
SecureBootConfigDriver.c SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
SecureBootConfigDxe.inf SecurityPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:48 +08:00
SecureBootConfigDxe.uni SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00
SecureBootConfigDxeExtra.uni SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
SecureBootConfigFileExplorer.c SecurityPkg: Fix assert when setting key from eMMC/SD/USB 2018-07-12 23:33:56 +02:00
SecureBootConfigImpl.c SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
SecureBootConfigImpl.h SecurityPkg/SecureBootConfigDxe: Change the declaring of buffer. 2017-10-17 22:03:42 +08:00
SecureBootConfigMisc.c SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
SecureBootConfigNvData.h SecurityPkg/SecureBootConfigImpl.c: Secure Boot DBX UI Enhancement 2017-09-28 15:02:00 +08:00
SecureBootConfigStrings.uni SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00