diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-10-25 18:09:46 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-10-29 11:11:03 +0800 |
commit | 70425456dae16fca23540936c8fb0d2b86776b97 (patch) | |
tree | a5a9f70df8c4df585e772afc97d2f089d2c19295 /BaseTools/Source/Python | |
parent | c96de1dbaedce11489974c3e977f1de4ec5cfb84 (diff) | |
download | edk2-70425456dae16fca23540936c8fb0d2b86776b97.tar.gz edk2-70425456dae16fca23540936c8fb0d2b86776b97.tar.bz2 edk2-70425456dae16fca23540936c8fb0d2b86776b97.zip |
MdeModulePkg/UsbBusPei: Reject descriptor whose length is bad
Today's implementation doesn't check whether the length of
descriptor is valid before using it.
The patch fixes this issue by syncing the similar fix to UsbBusDxe.
70c3c2370a2aefe71cf0f6c1a1e063f7d74e1d79
*MdeModulePkg/UsbBus: Reject descriptor whose length is bad
Additionally the patch also rejects the data when length is
larger than sizeof (PeiUsbDevice->ConfigurationData).
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 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions