[MPlayer-cvslog] r25917 - trunk/libmpdemux/demux_audio.c
reimar
subversion at mplayerhq.hu
Tue Jan 29 23:00:59 CET 2008
Author: reimar
Date: Tue Jan 29 23:00:58 2008
New Revision: 25917
Log:
Properly check length of flac metadata.
Modified:
trunk/libmpdemux/demux_audio.c
Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c (original)
+++ trunk/libmpdemux/demux_audio.c Tue Jan 29 23:00:58 2008
@@ -229,6 +229,8 @@ get_flac_metadata (demuxer_t* demuxer)
ptr += 4;
comment = ptr;
+ if (&comment[length] < comments || &comment[length] >= &comments[blk_len])
+ return;
c = comment[length];
comment[length] = 0;
More information about the MPlayer-cvslog
mailing list