]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg: check Length para before use in DevPathToTextUsbWWID
authorDandan Bi <dandan.bi@intel.com>
Mon, 19 Nov 2018 01:33:14 +0000 (09:33 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 21 Nov 2018 05:01:02 +0000 (13:01 +0800)
commitd8e702693a8c292220131dc4234a36e2c9fff614
tree5fb271bc1ad1c93d641761ad0d1f49f091720880
parent63f151aadb0a96467cd73f8c648c223f13fe37ba
MdePkg: check Length para before use in DevPathToTextUsbWWID

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1336

In function DevPathToTextUsbWWID, the Length parameter is used
without check. This patch is to add check before using it.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/UefiDevicePathLib/DevicePathToText.c