summaryrefslogtreecommitdiffstats
path: root/abs/core/mplayer/demux_audio_fix_20080129.diff
blob: 1b18b6e3c5d1fadeac178e48258ebb8d65487340 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- libmpdemux/demux_audio.c	(revision 24724)
+++ libmpdemux/demux_audio.c	(working copy)
@@ -229,6 +229,8 @@
           ptr += 4;
 
           comment = ptr;
+          if (&comment[length] < comments || &comment[length] >= &comments[blk_len])
+            return;
           c = comment[length];
           comment[length] = 0;