summaryrefslogtreecommitdiffstats
path: root/IntelFsp2Pkg
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2018-10-25 17:07:12 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2018-10-29 11:11:02 +0800
commitc96de1dbaedce11489974c3e977f1de4ec5cfb84 (patch)
treeb23d8390b8754e5b731b4bc474065cab16a60c50 /IntelFsp2Pkg
parent2f6693c283b54666def65e5e0d0b84e48b21cfef (diff)
downloadedk2-c96de1dbaedce11489974c3e977f1de4ec5cfb84.tar.gz
edk2-c96de1dbaedce11489974c3e977f1de4ec5cfb84.tar.bz2
edk2-c96de1dbaedce11489974c3e977f1de4ec5cfb84.zip
MdeModulePkg/UsbBusPei: Fix out-of-bound read access to descriptors
Today's implementation reads the Type/Length field in the USB descriptors data without checking whether the offset to read is beyond the data boundary. The patch fixes this issue by syncing the fix in commit 4c034bf62cbc1f3c5f4b5df25de97f0f528132b2 *MdeModulePkg/UsbBus: Fix out-of-bound read access to descriptors ParsedBytes in UsbBusPei.GetExpectedDescriptor() is different from Consumed in UsbBusDxe.UsbCreateDesc(). ParsedBytes is the offset of found descriptor while Consumed is offset of next descriptor of found one. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'IntelFsp2Pkg')
0 files changed, 0 insertions, 0 deletions