summaryrefslogtreecommitdiffstats
path: root/m_property.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-08-05 03:21:14 +0300
committerUoti Urpala <uau@mplayer2.org>2011-08-05 03:21:14 +0300
commitfddb59a6c3b06ecca9b4e755af4a5e6bccd20615 (patch)
treec38deafbe891b943fd2bca3ab7c71d329ee12dcb /m_property.c
parent35ef4d02d01a537357b35c3c3e5d729846777c5e (diff)
downloadmpv-fddb59a6c3b06ecca9b4e755af4a5e6bccd20615.tar.bz2
mpv-fddb59a6c3b06ecca9b4e755af4a5e6bccd20615.tar.xz
commands: parsing: fix string argument quoting/escaping
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.
Diffstat (limited to 'm_property.c')
0 files changed, 0 insertions, 0 deletions