audk/MdePkg/Library/UefiDevicePathLib
Jian J Wang 2f7a96d6ec MdePkg/UefiDevicePathLib: Add sanity check for FilePath device path
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1497

Current implementation of IsDevicePathValid() is not enough for type
of MEDIA_FILEPATH_DP, which has NULL-terminated string in the device
path. This patch add a simple NULL character check at Length position.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2019-02-21 20:54:31 +08:00
..
DevicePathFromText.c MdePkg: Handle AcpiExp device path when optional para is not specified 2018-10-24 22:15:57 +08:00
DevicePathToText.c MdePkg: check Length para before use in DevPathToTextUsbWWID 2018-11-21 13:01:02 +08:00
DevicePathUtilities.c MdePkg/UefiDevicePathLib: Add sanity check for FilePath device path 2019-02-21 20:54:31 +08:00
UefiDevicePathLib.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiDevicePathLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiDevicePathLib.inf MdePkg/UefiDevicePathLib: permit use by MM_STANDALONE modules 2019-01-21 13:42:49 +01:00
UefiDevicePathLib.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00
UefiDevicePathLibOptionalDevicePathProtocol.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiDevicePathLibOptionalDevicePathProtocol.inf MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
UefiDevicePathLibOptionalDevicePathProtocol.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00