diff options
author | wm4 <wm4@nowhere> | 2012-10-20 20:58:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-22 01:55:58 +0200 |
commit | a781fe14f729e0d3300e0e62aebbae1914d65cd4 (patch) | |
tree | 6c3e2ffce9be7fb247832f0b4620c2c217b1c1c0 /libmpcodecs/dec_audio.h | |
parent | 7b65202e4711899680992b723c3c327bc2fd2983 (diff) | |
download | mpv-a781fe14f729e0d3300e0e62aebbae1914d65cd4.tar.bz2 mpv-a781fe14f729e0d3300e0e62aebbae1914d65cd4.tar.xz |
osd_libass: increase robustness when handling internal OSD escapes
The \xFF escape is used internally to insert special OSD symbols (which
need a font change to the internal OSD font). There was potential for
breakage when \xFF was followed by \0, because then "in" would be
advanced past the string's end.
Normally this can't happen, as it would require invalid UTF-8 input
data. But we don't check input for UTF-8 validness, so there's a
potential issue here. Garbled output is ok on invalid UTF-8 input,
but crashing is not.
Make it more robust by checking for this.
Diffstat (limited to 'libmpcodecs/dec_audio.h')
0 files changed, 0 insertions, 0 deletions