1
mirror of https://github.com/mpv-player/mpv synced 2024-09-12 23:45:53 +02:00
mpv/sub
wm4 a781fe14f7 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.
2012-10-22 01:55:58 +02:00
..
ass_mp.c sub: add --ass-style-override option to disable style overrides 2012-10-12 10:13:42 +02:00
ass_mp.h subs: always use sub decoder framework for libass rendering 2012-09-18 21:04:46 +02:00
dec_sub.c subs, vo_vdpau: support RGBA color for PGS subtitles 2012-09-18 21:07:30 +02:00
dec_sub.h subs, vo_vdpau: support RGBA color for PGS subtitles 2012-09-18 21:07:30 +02:00
find_sub.c sub/OSD: move some related files to sub/ 2011-01-26 20:39:05 +02:00
find_subfiles.c sub: silence output of subtitle search message 2012-07-30 01:45:07 +02:00
find_subfiles.h subs: options: add -sub-paths 2011-04-20 04:22:52 +03:00
osd_dummy.c Remove teletext support 2012-08-03 00:12:46 +02:00
osd_font.pfb osd: osd_font.h -> osd_font.pfb 2012-07-28 23:36:08 +02:00
osd_libass.c osd_libass: increase robustness when handling internal OSD escapes 2012-10-22 01:55:58 +02:00
sd_ass.c sub: add --ass-style-override option to disable style overrides 2012-10-12 10:13:42 +02:00
sd_lavc.c subs, vo_vdpau: support RGBA color for PGS subtitles 2012-09-18 21:07:30 +02:00
sd.h subs: always use sub decoder framework for libass rendering 2012-09-18 21:04:46 +02:00
spudec.c Adjust ffmpeg/libav #includes to work with recent upstream changes 2012-08-21 18:22:00 +02:00
spudec.h VO: remove old VO glue 2012-08-07 01:29:56 +02:00
sub.c options: remove -subalign 2012-09-18 21:07:29 +02:00
sub.h subs, vo_vdpau: support RGBA color for PGS subtitles 2012-09-18 21:07:30 +02:00
subassconvert.c subassconvert: order colour names alphabetically / better match W3 list 2012-08-03 03:47:09 +02:00
subassconvert.h subtitles: style support for common SubRip tags and MicroDVD 2011-01-18 15:17:28 +02:00
subreader.c sub: simplify code by always defining sub_cp 2012-08-03 06:53:10 +02:00
subreader.h Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.c Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.h Remove dead code 2012-08-01 17:07:35 +02:00