ALT Linux repositórios
Group :: Sistema/Servidores
RPM: nut
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: nut-2.8.0-usb_submit_urb.patch
Download
Download
From 6e796efd35eb51fb76696fae904ec7bd8466f7e7 Mon Sep 17 00:00:00 2001
From: Elizaveta Morozova <morozovaes@altlinux.org>
Date: Fri, 24 Mar 2023 17:46:49 +0300
Subject: [PATCH] nut-2.8.0-usb_submit_urb
---
drivers/libhid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/libhid.c b/drivers/libhid.c
index cbc0d8e0a..a9b778db6 100644
--- a/drivers/libhid.c
+++ b/drivers/libhid.c
@@ -740,7 +740,7 @@ int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize)
}
/* Avoid overflowing known buffer size, to be sure: */
- r = UMIN(r, sizeof(buf));
+ r = UMIN(r, 8);
}
#ifdef __clang__
#pragma clang diagnostic pop
--
2.33.5