summaryrefslogtreecommitdiff
path: root/lib/libusbhid
AgeCommit message (Collapse)Author
2022-05-22usbhid.3: hid_parse_usage_in_page() actually returns intcharlotte
2021-11-03usbhid(3): use reallocarrnia
2020-04-04lib/libusbhid: Fix possible left shift changes signedness bit.fox
This bug was reported by UBSan runs. lib/libusbhid/parse.c:246:20 Can result in left shift changes signedness bit as a side effect positive number can go negative, cast it to unsigned for the operation and silence the issue. Reviewed by: kamil@
2020-04-04lib/libusbhid: Fix possible left shift changes signedness bit.fox
This bug was reported by UBSan runs. lib/libusbhid/usage.c:247:27 lib/libusbhid/usage.c:244:28 lib/libusbhid/usage.c:235:13 Can result in left shift changes signedness bit as a side effect positive number can go negative, cast it to unsigned for the operation and silence the issue. Reviewed by: kamil@
2020-04-04lib/libusbhid: Fix possible left shift changes signedness bit.fox
This bug was reported by UBSan runs. lib/libusbhid/data.c:58:25 lib/libusbhid/data.c:91:7 lib/libusbhid/data.c:92:7 Can result in left shift changes signedness bit as a side effect positive number can go negative, cast it to unsigned for the operation and silence the issue. Reviewed by: kamil@
2017-12-10Fix fallout from hid factorisation:bouyer
- need to install sys/dev/hid/hid.h for userland - include it where needed - most of the time in place if usb/usbhid.h
2017-10-22Add hid_parse_usage_page and hid_parse_usage_in_page to the NAME sectionabhinav
2017-07-03Remove workaround for ancient HTML generation code.wiz
2016-01-22Uses __BEGIN_DECLS so needs sys/cdefs.h; also needs stdint.h.dholland
And, while here, add missing include guard.
2016-01-07Fix buffer-overrun/off-by-one in hid_set_data(3).jakllsch
(The tests only detected this as a problem on ARMv7, not i386.)
2016-01-07Don't crash when the device's HID Report Descriptor Pops from an empty stack.jakllsch
2016-01-02minor type fixes.christos
2016-01-02Teach hid_parse_usage_in_page() how to understand hex literals, injakllsch
addition to the usual table lookup.
2016-01-02Fix round-trip of hid_usage_in_page(hid_parse_usage_in_page()) whenjakllsch
the usage is a catch-all format string. This should allow usbhidctl(1) to understand an item argument of "Button:Button_65535".
2016-01-01Fix hid_get_data() for negative or 32-bit report data.jakllsch
2016-01-01Alphanumeric is spelled Alphanumericjakllsch
2015-12-31compare pointer against NULL instead of 0jakllsch
2012-05-09Extended usb_hid_usages, with help from the equivalent file from FreeBSD.khorben
Favored NetBSD upon conflicts, except for a typo and consistency. ok riz@
2012-03-15Use Lk macro when dealing with URLs. Another part of PR/29238.njoly
2012-01-17PR/45850: Pierre Pronchery: USB multi-touch panels are not supportedchristos
2011-05-23Remove pointless self-assignmentjoerg
2010-08-13Improve usbhid(3) descriptor/report parsing:jakllsch
Handle signed Physical Minimums Handle signed Unit Exponents
2010-05-12note const from actual APIplunky
2010-05-12hid_get_data() will read an extra byte if the data being read ends onplunky
a byte boundary. This byte is subsequently discarded, but it could be a byte from memory after the end of the report being parsed. Fix this by rounding up and ending the loop one earlier.
2010-03-22Use .In instead of .Ar Pa for header files.joerg
2010-01-05Fix copy-paste-o. Per the HID spec, Global Item Tag 0b001101nn isjakllsch
Physical Minimum, not a alias for Physical Maximum.
2009-07-10Add more Keypad usages in the Keyboard/Keypad pagejakllsch
from USB HID Usage Tables document version 1.11. Admitedly these are not going to be noticed when ukbd(4) is around. While here, correct a typo (that's also in the HUT document), and normalize to ASCII a non-UTF-8 encoding of "moire". "This may prove useful to some of you someday, perhaps in a somewhat bizarre set of circumstances." - Tom Lehrer
2007-05-24add generic Device Controls usage page informationplunky
2007-04-11add const to the data for hid_use_report_desc() since it doesplunky
not modify the memory.
2007-03-23add __BEGIN_DECLS/__END_DECLS so that this can be used from c++ libsdrochner
(there is code out there -plib/flightgear- which tries this)
2006-05-19cast shift argument in macro.christos
2006-04-09fix debug build.christos
2005-12-14Fix sign extension broken by previous. dillo hacked here too.wiz
2005-12-05fix non-portable right shifts.christos
2004-10-28Use (unsigned char) cast to sanitise arguments to ctype functions.dsl
2004-10-27Fix a load of international alphabet problems with isxxx() and toupper()dsl
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct piece of memory is looked at for the bit mask. gcc optimises out the '& 0xff' (on i386 at least). Fixes problems found by gcc when the splurious (int) cast is removed from the #defines in ctype.h
2004-06-10Minor fix in SEE ALSO; put xref first; .Pp before a sentence.uebayasi
2004-05-16Add entries for items found on the Microsoft Wireless MultiMedia Keyboard 1.1.lukem
Spell "Microsoft" correctly.
2004-01-05The report size is not a local item, so don't clear it when clearing local ↵augustss
items.
2003-07-26netbsd.org->NetBSD.orgsalo
2003-06-06Grammar, spelling, markup fixes from jmc@openbsd.wiz
2003-04-16Usewiz
.In header.h instead of .Fd #include \*[Lt]header.h\*[Gt] Much easier to read and write, and supported by groff for ages. Okayed by ross.
2003-03-08add RCSIDlukem
2003-02-14'NetBSD.org' and some mdoc fixes.grant
2002-10-01New sentence, new line. From Robert Elz.wiz
2002-07-20sweep of errx/warnx, remove unnecessary trailing \ngrant
2002-02-20Prefix structure members to protect them against clashes with eg. c++ keywords.christos
Suggested by Alfred Perlstein, from FreeBSD, ok'd by augustss
2002-02-07Generate <>& symbolically.ross
2002-01-19Fix typo in URL, reported by Peter Valchev in private mail.wiz
2002-01-12Corrected typo: hid(4) -> uhid(4)kristerw