[SCM] libav/experimental: All id3 parsers are buggy, 0 termination fix 1 of n (issue created by andreas and found by reimar) fix is from reimar + cosmetics by me.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:24:43 UTC 2013


The following commit has been merged in the experimental branch:
commit d5ae45841f92951340f65ebd5eafdae136e1d6bb
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Fri Jul 4 22:00:35 2008 +0000

    All id3 parsers are buggy, 0 termination fix 1 of n (issue created by andreas
    and found by reimar) fix is from reimar + cosmetics by me.
    
    Originally committed as revision 14069 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index c54f0ee..6d9689a 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -185,6 +185,8 @@ static void id3v2_read_ttag(AVFormatContext *s, int taglen, char *dst, int dstle
     char *q;
     int len;
 
+    if(dstlen > 0)
+        dst[0]= 0;
     if(taglen < 1)
         return;
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list