diff options
author | Uoti Urpala <uau@mplayer2.org> | 2013-04-20 23:44:45 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-06 23:11:08 +0200 |
commit | 2cd1a8286b55e183e5cf64c328c3ce8d9a6226fa (patch) | |
tree | d1493b8879c21c1d11822effedb511e27f89f83f /sub/ass_mp.c | |
parent | 5e727c314e98aa77c255734f4aab5b0d1ad0fd3e (diff) | |
download | mpv-2cd1a8286b55e183e5cf64c328c3ce8d9a6226fa.tar.bz2 mpv-2cd1a8286b55e183e5cf64c328c3ce8d9a6226fa.tar.xz |
subreader: fix one more unsafe sscanf call with "%["
"%[,.:]" conversion was used with a buffer that could be shorter than
the matched string. Suppress assignment of the conversion since the
value wasn't used anyway, and also limit match length to 1 as it
doesn't look like the intent was to match longer runs of the
characters.
Merged from mplayer2 commit 5cb9aac. Note that the other half of the
mplayer2 commit is already part of the mpv commit d98e61e. (I'm not
sure why. The mplayer2 commit date precedes mpv's, but was pushed long
after the mpv change was pushed; either one of the dates is wrong, or
we did the same work twice - in that case, thanks a lot...)
Diffstat (limited to 'sub/ass_mp.c')
0 files changed, 0 insertions, 0 deletions