[64704] trunk/dports/audio/id3lib
macsforever2000 at macports.org
macsforever2000 at macports.org
Sun Mar 14 19:57:01 PDT 2010
Revision: 64704
http://trac.macports.org/changeset/64704
Author: macsforever2000 at macports.org
Date: 2010-03-14 19:57:00 -0700 (Sun, 14 Mar 2010)
Log Message:
-----------
fix crash in id3v2. (#21347)
Modified Paths:
--------------
trunk/dports/audio/id3lib/Portfile
Added Paths:
-----------
trunk/dports/audio/id3lib/files/id3lib-vbr-overflow.patch
Modified: trunk/dports/audio/id3lib/Portfile
===================================================================
--- trunk/dports/audio/id3lib/Portfile 2010-03-15 02:56:31 UTC (rev 64703)
+++ trunk/dports/audio/id3lib/Portfile 2010-03-15 02:57:00 UTC (rev 64704)
@@ -2,7 +2,7 @@
PortSystem 1.0
name id3lib
version 3.8.3
-revision 2
+revision 3
categories audio
maintainers nomaintainer
description ID3 tag manipulation
@@ -21,7 +21,8 @@
depends_build port:libtool
-patchfiles patch_id3lib_3.8.3_UTF16_writing_bug.diff
+patchfiles patch_id3lib_3.8.3_UTF16_writing_bug.diff \
+ id3lib-vbr-overflow.patch
patch.pre_args -p1
configure.ccache no
Added: trunk/dports/audio/id3lib/files/id3lib-vbr-overflow.patch
===================================================================
--- trunk/dports/audio/id3lib/files/id3lib-vbr-overflow.patch (rev 0)
+++ trunk/dports/audio/id3lib/files/id3lib-vbr-overflow.patch 2010-03-15 02:57:00 UTC (rev 64704)
@@ -0,0 +1,11 @@
+--- id3lib-3.8.3.orig/src/mp3_parse.cpp.org 2003-03-02 01:23:00.000000000 +0100
++++ id3lib-3.8.3/src/mp3_parse.cpp 2009-09-27 19:44:18.000000000 +0200
+@@ -465,7 +465,7 @@
+ // from http://www.xingtech.com/developer/mp3/
+
+ const size_t VBR_HEADER_MIN_SIZE = 8; // "xing" + flags are fixed
+- const size_t VBR_HEADER_MAX_SIZE = 116; // frames, bytes, toc and scale are optional
++ const size_t VBR_HEADER_MAX_SIZE = 120; // frames, bytes, toc and scale are optional
+
+ if (mp3size >= vbr_header_offest + VBR_HEADER_MIN_SIZE)
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100314/09a5f064/attachment.html>
More information about the macports-changes
mailing list