changeset 4258:35c8abd32d93 libavformat

Fix a read past end of buffer crash in the mp3 probe
author alexc
date Tue, 20 Jan 2009 08:00:39 +0000
parents 3f71ce8f8da1
children 6cc23cc61648
files mp3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mp3.c	Tue Jan 20 07:42:14 2009 +0000
+++ b/mp3.c	Tue Jan 20 08:00:39 2009 +0000
@@ -364,7 +364,7 @@
 
     max_frames = 0;
     buf = buf0;
-    end = buf + p->buf_size - sizeof(uint32_t);
+    end = p->buf + p->buf_size - sizeof(uint32_t);
 
     for(; buf < end; buf= buf2+1) {
         buf2 = buf;