[FFmpeg-cvslog] r22945 - trunk/libavformat/id3v2.c
jai_menon
subversion
Thu Apr 22 14:54:51 CEST 2010
Author: jai_menon
Date: Thu Apr 22 14:54:50 2010
New Revision: 22945
Log:
Fix off-by-1 error in the tag parsing code.
Modified:
trunk/libavformat/id3v2.c
Modified: trunk/libavformat/id3v2.c
==============================================================================
--- trunk/libavformat/id3v2.c Thu Apr 22 11:41:45 2010 (r22944)
+++ trunk/libavformat/id3v2.c Thu Apr 22 14:54:50 2010 (r22945)
@@ -127,7 +127,7 @@ static void read_ttag(AVFormatContext *s
break;
case 3: /* UTF-8 */
- len = FFMIN(taglen, dstlen - 1);
+ len = FFMIN(taglen, dstlen);
get_buffer(s->pb, dst, len);
dst[len] = 0;
break;
More information about the ffmpeg-cvslog
mailing list