mirror of https://github.com/acidanthera/audk.git
0dd6065520
Per USB HID spec, the buffer holding key codes should at least 3-byte long. Today's code assumes that the key codes buffer length is longer than 3-byte and unconditionally accesses the key codes buffer. It's incorrect. The patch fixes the issue by returning Device Error when the length is less than 3-byte. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Steven Shi <steven.shi@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> |
||
---|---|---|
.. | ||
ComponentName.c | ||
MouseHid.c | ||
UsbMouseAbsolutePointer.c | ||
UsbMouseAbsolutePointer.h | ||
UsbMouseAbsolutePointerDxe.inf | ||
UsbMouseAbsolutePointerDxe.uni | ||
UsbMouseAbsolutePointerDxeExtra.uni |