DescriptionStore HID report sizes as uint16_t.
HID report sizes are unsigned values. In addition they should (because
of the limited size of USB control transfers) never be larger than 64k.
In reality that would be an absolutely enormous report and unlikely to
ever been seen in the wild. By limiting the storage size for report
lengths to a uint16_t we therefore also limit our exposure to being
convinced to allocate unreasonably large buffers by a malicious device.
The Windows HID parser already limits report sizes to a USHORT value.
BUG=
Committed: https://crrev.com/70cdd67c0293cef1216422386ff92018770c4b70
Cr-Commit-Position: refs/heads/master@{#291624}
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|