Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2024 11:31:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 282790] hidraw(4) - Regression in documented behavior of HIDRAW_GET_REPORT.
Message-ID:  <bug-282790-19105-ChOfK41NAA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-282790-19105@https.bugs.freebsd.org/bugzilla/>
References:  <bug-282790-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282790

--- Comment #2 from Vladimir Kondratyev <wulf@freebsd.org> ---
That is certainly a bug. Thank you for the report.

These patches require some changes:

In uhid.c ugd->ugd_actlen should be equal to imin(ugd->ugd_maxlen, size) ra=
ther
than size

In hidraw.c  ugd->ugd_actlen should be taken from 4th parameter of preceding
hid_get_report() call.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282790-19105-ChOfK41NAA>