]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
MdePkg UefiDevicePathLib: Validate buffer length before use buffer.
authorEric Dong <eric.dong@intel.com>
Wed, 12 Oct 2016 12:32:16 +0000 (20:32 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 19 Oct 2016 02:20:04 +0000 (10:20 +0800)
commite9fb71b29965aff2bf9e9caa1837ddcd069f2a27
tree94286d7c5640dc4a22dccc18804d1e52eeb37d67
parent67e11e4d5902dc77fc64876da5b71122bf128837
MdePkg UefiDevicePathLib: Validate buffer length before use buffer.

In IsDevicePathValid API, code should validate the device path
buffer not exceed the input MaxSize before reference the path
info.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c