mirror of https://github.com/mpv-player/mpv
fddb59a6c3
Parsing of commands with string arguments had several problems. First, escape handling modified the original string, which broke keyboard command definitions with strings containing escapes. Second, in an argument like "\\" the second quote was incorrectly considered escaped even though the preceding '\' was itself escaped. Third, an unterminated quoted string resulted in the argument being set to NULL even if this violated the declared the minimum number of arguments to the command type; this could cause a crash in the code executing the parsed commands. Fix by rewriting the string argument parsing. Also change int/float argument parsing so that the whole command is rejected on error. |
||
---|---|---|
.. | ||
appleir.c | ||
ar.c | ||
ar.h | ||
input.c | ||
input.h | ||
joystick.c | ||
joystick.h | ||
keycodes.h | ||
lirc.c | ||
lirc.h |