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:
eugeni 2006-09-02 19:51:26 +00:00
parent 62bfae1406
commit 1ad2da1fbb
1 changed files with 1 additions and 1 deletions

View File

@ -2878,7 +2878,7 @@ handle_subtitles(demuxer_t *demuxer, mkv_track_t *track, char *block,
ptr1++;
/* 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++]
= timecode + block_duration;