diff options
| author | Even Xu <even.xu@intel.com> | 2026-09-22 10:46:37 +0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-09-23 18:48:30 +0200 |
| commit | 5e5c3b9db1c5910d6a9175c97b76a95566e4dc32 (patch) | |
| tree | 1ec628947bad133948a78633b74e44b4bf74a5e6 /tools/lib/python/kdoc/python_version.py | |
| parent | 53f7f7955a684e820bdd6bd6792c45c4b434f637 (diff) | |
| download | linux-next-5e5c3b9db1c5910d6a9175c97b76a95566e4dc32.tar.gz linux-next-5e5c3b9db1c5910d6a9175c97b76a95566e4dc32.zip | |
HID: Intel-thc-hid: Intel-quicki2c: Fix buffer overflow
The input and output buffers are used to store complete HID-over-I2C
packets, including their protocol headers. However, their sizes are
currently calculated from the payload length only.
Allocate enough space for both the payload and the packet header to
prevent a buffer overflow when the payload reaches its maximum size.
Signed-off-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
