diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-08-05 03:21:14 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-08-05 03:21:14 +0300 |
commit | fddb59a6c3b06ecca9b4e755af4a5e6bccd20615 (patch) | |
tree | c38deafbe891b943fd2bca3ab7c71d329ee12dcb /libmpcodecs/vf_hue.c | |
parent | 35ef4d02d01a537357b35c3c3e5d729846777c5e (diff) | |
download | mpv-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 'libmpcodecs/vf_hue.c')
0 files changed, 0 insertions, 0 deletions