]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/UefiDevicePathLib/DevicePathToText.c
MdePkg UefiDevicePathLib: Fix possible memory read/write cross boundary
authorHao Wu <hao.a.wu@intel.com>
Fri, 28 Aug 2015 07:41:38 +0000 (07:41 +0000)
committerhwu1225 <hwu1225@Edk2>
Fri, 28 Aug 2015 07:41:38 +0000 (07:41 +0000)
commit0cd35d739ea8c0096af0db7d920010593db5779f
tree20c4ae48f8492a2a3f7842d1808792bb4426e5c6
parenta5cb7c824e11942a1add7a0d5fdb9a8ab0ed287d
MdePkg UefiDevicePathLib: Fix possible memory read/write cross boundary

The SSID field of a Wi-Fi device path node may not contain a NULL
termination.

Additonal handle is added to make sure no cross-boundary memory read/write
will occur.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18355 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
MdePkg/Library/UefiDevicePathLib/DevicePathToText.c