]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg UefiDevicePathLibDevicePathProtocol: Validate before use.
authorEric Dong <eric.dong@intel.com>
Wed, 12 Oct 2016 12:34:05 +0000 (20:34 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 19 Oct 2016 02:20:05 +0000 (10:20 +0800)
commitd9c2c9540a95608bc1179b88be90373fb93664a8
treec3fc14148f7e2e4aaed1304b9205f9c1b5d34486
parente9fb71b29965aff2bf9e9caa1837ddcd069f2a27
MdePkg UefiDevicePathLibDevicePathProtocol: Validate before use.

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/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c