mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 21:38:01 +02:00
Buffer for HIDPP_REFRESH_FLAGS_KIND not big enough
HIDPP_REFRESH_FLAGS_KIND action puts result into 7 bytes buffer and later tries to access 8th element (with index 7). Make buffer bigger, so 8th element will fit. Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl> Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
28f396496a
commit
972acff145
1 changed files with 1 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ hidpp_device_refresh (HidppDevice *device,
|
|||
HIDPP_READ_LONG_REGISTER,
|
||||
0xb5,
|
||||
buf, 3,
|
||||
buf, 7,
|
||||
buf, 8,
|
||||
error);
|
||||
if (!ret)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue