[MPlayer-cvslog] r19647 - trunk/libmpdemux/demux_mkv.c
eugeni
subversion at mplayerhq.hu
Sat Sep 2 21:51:26 CEST 2006
Author: eugeni
Date: Sat Sep 2 21:51:26 2006
New Revision: 19647
Modified:
trunk/libmpdemux/demux_mkv.c
Log:
Fix read beyond the end of allocated memory block.
Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c (original)
+++ trunk/libmpdemux/demux_mkv.c Sat Sep 2 21:51:26 2006
@@ -2878,7 +2878,7 @@
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;
More information about the MPlayer-cvslog
mailing list