OpenGrok
Cross Reference: usage.c
xref
: /
src
/
lib
/
libusbhid
/
usage.c
Home
|
History
|
Annotate
|
Download
|
only in
libusbhid
History log of
/src/lib/libusbhid/usage.c
Revision
Date
Author
Comments
1.12
03-Nov-2021
nia
usbhid(3): use reallocarr
1.11
04-Apr-2020
fox
lib/libusbhid: Fix possible left shift changes signedness bit.
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@
1.10
02-Jan-2016
christos
branches: 1.10.16;
minor type fixes.
1.9
02-Jan-2016
jakllsch
Teach hid_parse_usage_in_page() how to understand hex literals, in
addition to the usual table lookup.
1.8
02-Jan-2016
jakllsch
Fix round-trip of hid_usage_in_page(hid_parse_usage_in_page()) when
the usage is a catch-all format string.
This should allow usbhidctl(1) to understand an item argument of
"Button:Button_65535".
1.7
09-Apr-2006
christos
fix debug build.
1.6
28-Oct-2004
dsl
Use (unsigned char) cast to sanitise arguments to ctype functions.
1.5
27-Oct-2004
dsl
Fix a load of international alphabet problems with isxxx() and toupper()
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
1.4
26-Jul-2003
salo
netbsd.org->NetBSD.org
1.3
08-Mar-2003
lukem
add RCSID
1.2
20-Jul-2002
grant
sweep of errx/warnx, remove unnecessary trailing \n
1.1
28-Dec-2001
augustss
Update for uhidev(4) changes.
Also rename libusb to libusbhid (which is a much better name).
1.10.16.1
08-Apr-2020
martin
Merge changes from current as of 20200406
Indexes created Mon Sep 29 21:09:56 GMT 2025