mpv/input
wm4 9a210ca2d5 Audit and replace all ctype.h uses
Something like "char *s = ...; isdigit(s[0]);" triggers undefined
behavior, because char can be signed, and thus s[0] can be a negative
value. The is*() functions require unsigned char _or_ EOF. EOF is a
special value outside of unsigned char range, thus the argument to the
is*() functions can't be a char.

This undefined behavior can actually trigger crashes if the
implementation of these functions e.g. uses lookup tables, which are
then indexed with out-of-range values.

Replace all <ctype.h> uses with our own custom mp_is*() functions added
with misc/ctype.h. As a bonus, these functions are locale-independent.
(Although currently, we _require_ C locale for other reasons.)
2014-07-01 23:11:08 +02:00
..
cmd_list.c command: redo ancient TV/DVB/PVR commands 2014-06-11 00:34:41 +02:00
cmd_list.h command: redo ancient TV/DVB/PVR commands 2014-06-11 00:34:41 +02:00
cmd_parse.c input: remove pausing command prefixes 2014-05-11 15:41:34 +02:00
cmd_parse.h
event.c input: change mp_input_run_cmd signature 2014-01-04 19:42:16 +01:00
event.h
input.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
input.h input: remove pausing command prefixes 2014-05-11 15:41:34 +02:00
joystick.c Kill all tabs 2014-04-13 18:03:01 +02:00
joystick.h
keycodes.c keycodes: add const to a function argument 2014-02-17 02:52:58 +01:00
keycodes.h input: fix typos, cosmetics 2014-05-10 10:44:15 +02:00
lirc.c Kill all tabs 2014-04-13 18:03:01 +02:00
lirc.h