audk/OvmfPkg/SecureBootConfigDxe
Gary Ching-Pang Lin dfd3119ab2 OvmfPkg/SecureBootConfigDxe: Avoid illegal access
When enrolling the certificate from a file, the suffix check function
check the last 4 characters to filter out non-DER files. However,
if the length of the file name is less than 4, the address prior to
the file name will be accessed while it shouldn't. This commit checks
the length of the file name to avoid illegal access.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14556 6f19259b-4bc3-4df7-8a09-765794883524
2013-08-18 07:04:02 +00:00
..
SecureBootConfig.vfr OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset 2012-08-15 00:03:59 +00:00
SecureBootConfigDevicePath.c Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToText, ConvertTextToDevicePath and ConvertTextToDeviceNode APIs in DevicePathLib. 2013-07-26 03:14:08 +00:00
SecureBootConfigDriver.c OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset 2012-08-15 00:03:59 +00:00
SecureBootConfigDxe.inf Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToText, ConvertTextToDevicePath and ConvertTextToDeviceNode APIs in DevicePathLib. 2013-07-26 03:14:08 +00:00
SecureBootConfigFileExplorer.c OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset 2012-08-15 00:03:59 +00:00
SecureBootConfigImpl.c OvmfPkg/SecureBootConfigDxe: Avoid illegal access 2013-08-18 07:04:02 +00:00
SecureBootConfigImpl.h Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToText, ConvertTextToDevicePath and ConvertTextToDeviceNode APIs in DevicePathLib. 2013-07-26 03:14:08 +00:00
SecureBootConfigMisc.c OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset 2012-08-15 00:03:59 +00:00
SecureBootConfigNvData.h OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset 2012-08-15 00:03:59 +00:00
SecureBootConfigStrings.uni OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset 2012-08-15 00:03:59 +00:00