mirror of https://github.com/mpv-player/mpv
Fix read beyond the end of allocated memory block.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19647 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
62bfae1406
commit
1ad2da1fbb
|
@ -2878,7 +2878,7 @@ handle_subtitles(demuxer_t *demuxer, mkv_track_t *track, char *block,
|
||||||
ptr1++;
|
ptr1++;
|
||||||
|
|
||||||
/* Newline */
|
/* Newline */
|
||||||
while (*ptr1 == '\\' && ptr1+1-block < size && (*(ptr1+1)|0x20) == 'n')
|
while (ptr1+1-block < size && *ptr1 == '\\' && (*(ptr1+1)|0x20) == 'n')
|
||||||
{
|
{
|
||||||
mkv_d->clear_subs_at[mkv_d->subs.lines++]
|
mkv_d->clear_subs_at[mkv_d->subs.lines++]
|
||||||
= timecode + block_duration;
|
= timecode + block_duration;
|
||||||
|
|
Loading…
Reference in New Issue