diff options
author | Arkadiusz Miśkiewicz <arekm@maven.pl> | 2013-03-20 22:28:11 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2013-03-21 16:23:46 +0000 |
commit | 972acff14532aa1a495b2ee20f24505cb581291a (patch) | |
tree | 027b284bb5224815343926fd29cfc77152cf855a | |
parent | 28f396496a90705b0d8823707396731fe60d85bc (diff) | |
download | upower-972acff14532aa1a495b2ee20f24505cb581291a.tar.gz |
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>
-rw-r--r-- | src/linux/hidpp-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/hidpp-device.c b/src/linux/hidpp-device.c index 1bcefab..58c6e6d 100644 --- a/src/linux/hidpp-device.c +++ b/src/linux/hidpp-device.c @@ -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; |