mirror of
https://github.com/torvalds/linux.git
synced 2026-09-20 09:40:02 +02:00
The wait and bulk receive paths walk variable-length commands from a
USB buffer. A nonzero command shorter than CMD_HEADER_LEN can still be
dispatched, and the wait path copies a matching command into a fixed
caller-owned struct kvaser_cmd using the device-provided length.
Reject nonzero commands that do not contain the fixed header or that
extend beyond the current USB buffer item. In the wait path, also reject
a matching command that exceeds the destination before copying it.
Fixes:
|
||
|---|---|---|
| .. | ||
| kvaser_usb_core.c | ||
| kvaser_usb_devlink.c | ||
| kvaser_usb_hydra.c | ||
| kvaser_usb_leaf.c | ||
| kvaser_usb.h | ||
| Makefile | ||