summaryrefslogtreecommitdiffstats
path: root/MPlayer/build/demux_audio_fix_20080129.diff
blob: dca4704c2a254061e9f8cc7342a944d11f4be48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: demux_audio.c
===================================================================
--- demux_audio.c	(revision 24724)
+++ 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;