History log of /openbsd/lib/libusbhid/parse.c (Results 1 – 13 of 13)
Revision Date Author Comments
# 2c53affb 27-Dec-2022 jmc <jmc@openbsd.org>

spelling fixes; from paul tagliamonte
any changes not taken noted on tech, but chiefly here i did not take the
cancelation - cancellation changes;


# 63aecb60 05-Jun-2020 jsg <jsg@openbsd.org>

HID parser could overflow if a malicious device (potentially USB) provided
too many PUSH. report from Andy Nguyen @ google.
fix by jcs

from kernel hid.c rev 1.3


# 95fec9d1 04-Feb-2015 mpi <mpi@openbsd.org>

Return the correct report ID when hitting a "collection" item.

Collection are reported before their corresponding report ID, so bring
back the trick from old parser and do not return them until we f

Return the correct report ID when hitting a "collection" item.

Collection are reported before their corresponding report ID, so bring
back the trick from old parser and do not return them until we find a
report ID or another start or end of collection.

Fix a regression introduced by last parser backport from FreeBSD
reported by Benjamin Baier, thanks!

show more ...


# 4e4160e6 18-Jan-2015 mpi <mpi@openbsd.org>

Do not calculated the length of a report with an extra byte for the
reportID because the kernel skips it.

Problem reported and fix tested by Benjamin Baier.


# b3eedbb4 12-May-2014 mpi <mpi@openbsd.org>

Keep libusbhid's HID parser in sync with the kernel one. This is mostly
a backport from FreeBSD's r205728, r224511 and 225839 without the new
functions to set/get a report ID nor the usbhidctl(1) &

Keep libusbhid's HID parser in sync with the kernel one. This is mostly
a backport from FreeBSD's r205728, r224511 and 225839 without the new
functions to set/get a report ID nor the usbhidctl(1) & usbhidaction(1)
bits.

Committing now to open the "Monday's Bump Parade".

show more ...


# ee353af9 07-May-2014 tedu <tedu@openbsd.org>

use calloc. from Peter Malone


# 674f1e1f 16-Jul-2012 jasper <jasper@openbsd.org>

revert previous, it was hardly tested and is causing too many issues too close to release.

as discussed with and ok mpi@ deraadt@


# 9b8cf20d 11-Jul-2012 yuo <yuo@openbsd.org>

- port multiple report ID support for HID parser from FreeBSD code
(rev. 205728, 224511 and 225839)

- add hid_get_report_id(3) to get id of a descriptor.

- crank the major in shlib_version 3.0 ->

- port multiple report ID support for HID parser from FreeBSD code
(rev. 205728, 224511 and 225839)

- add hid_get_report_id(3) to get id of a descriptor.

- crank the major in shlib_version 3.0 -> 4.0

ok deraadt@, mpi@

show more ...


# 939a6d42 24-Jul-2009 jsg <jsg@openbsd.org>

From NetBSD rev 1.5
The report size is not a local item, so don't clear it when clearing local items.


# 12c240a5 24-Jul-2009 jsg <jsg@openbsd.org>

Global Item #3 should be Physical Minimum not Maximum according
to the HID spec.

From FreeBSD hid.c rev 1.31


# 78e5c336 04-Jun-2004 deraadt <deraadt@openbsd.org>

knf + new interface: hid_start() is non-exit non-stderr spewing version of hid_init(); ok matthieu millert


# 7517eab2 10-May-2002 nate <nate@openbsd.org>

Update usb userland stuff to reflect hid changes in the kernel.
This adds the new program usbhidaction which can be used to assign actions
to events that occur on a uhid device. For example, you can

Update usb userland stuff to reflect hid changes in the kernel.
This adds the new program usbhidaction which can be used to assign actions
to events that occur on a uhid device. For example, you can now make the
volume buttons on some newer keyboards actually do something.

show more ...


# be8f1931 30-Dec-2001 pvalchev <pvalchev@openbsd.org>

Rename libusb to libusbhid, a better name, per NetBSD