mpv/options
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
..
m_config.c options: remove some more stuff 2014-06-13 02:18:26 +02:00
m_config.h options: remove a global variable 2014-06-11 00:39:14 +02:00
m_option.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
m_option.h options: support setting start time relative to start PTS 2014-06-29 20:39:49 +02:00
m_property.c command: redo the property type 2014-06-13 02:11:39 +02:00
m_property.h command: redo the property type 2014-06-13 02:11:39 +02:00
options.c options: add --list-protocols option 2014-06-30 23:20:10 +02:00
options.h options: Expose --colormatrix-primaries to the user 2014-06-22 19:01:25 +02:00
parse_commandline.c options: fix "-" (stdin) input 2014-05-06 01:06:07 +02:00
parse_commandline.h msg: remove global state 2013-12-21 23:11:12 +01:00
parse_configfile.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c config: use the same signature for win32/OSX specific path functions 2014-06-26 19:56:45 +02:00
path.h Basic xdg directory implementation 2014-06-26 19:37:25 +02:00