audk/MdePkg
Jian J Wang 7c0e8053f2 MdePkg/UefiDevicePathLibDevicePathProtocol: 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
..
Include MdePkg/StatusCodeDataTypeId.h: Add new definition per PI1.7 Spec 2019-02-19 16:15:05 +08:00
Library MdePkg/UefiDevicePathLibDevicePathProtocol: Add sanity check for FilePath device path 2019-02-21 20:54:31 +08:00
MdePkg.dec MdePkg: Support EFI_PEI_CORE_FV_LOCATION_PPI 2019-02-15 13:39:38 +08:00
MdePkg.dsc MdePkg: add MM_STANDALONE implementation of MmServicesTableLib 2019-01-16 20:10:51 +01:00
MdePkg.uni MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
MdePkgExtra.uni MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00