ihidev can pass a buffer larger than the size of the claimed input
authoranton <anton@openbsd.org>
Fri, 11 Nov 2022 13:59:40 +0000 (13:59 +0000)
committeranton <anton@openbsd.org>
Fri, 11 Nov 2022 13:59:40 +0000 (13:59 +0000)
commit538a0e866115defba8e28dcb263e7982e116901a
tree1fa10d9fe127c17b580fa353b9095424519b5437
parent751bff3612158dc73d18d86298bc40e923e5b7cc
ihidev can pass a buffer larger than the size of the claimed input
report since it unconditionally uses the size of the longest input
report. This is quite harmless and the defensive check in hidcc can
therefore be relaxed and instead only examining the number of expected
bytes.

ok matthieu@ patrick@
sys/dev/hid/hidcc.c