Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304299 - Patch to fix segfault in media-sound/mac-3.99.4.5.4
Summary: Patch to fix segfault in media-sound/mac-3.99.4.5.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 11:55 UTC by Adam Nielsen
Modified: 2010-03-03 20:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Nielsen 2010-02-10 11:55:00 UTC
The Linux port of the Monkey's Audio library has a bug in it, which causes a crash on 64-bit platforms when a program tries to retrieve certain tag info.  XMMS2 is one program that crashes on 90% of .ape files.  The fix is small, and I sent it to the maintainer last month but I never heard back.

Since it causes a segfault, is it possible to get the patch included in Portage until it makes it into the official distribution?

--- src/MACLib/APEDecompress.cpp.orig   2006-06-01 19:00:58.000000000 +1000
+++ src/MACLib/APEDecompress.cpp        2010-01-26 19:51:29.743347230 +1000
@@ -369,7 +369,7 @@

*****************************************************************************************/
 intptr_t CAPEDecompress::GetInfo(APE_DECOMPRESS_FIELDS Field, intptr_t
nParam1, intptr_t nParam2)
 {
-    int nRetVal = 0;
+    intptr_t nRetVal = 0;
     BOOL bHandled = TRUE;

     switch (Field)
Comment 1 Adam Nielsen 2010-03-01 00:06:20 UTC
I have just heard back from the author who has released version 3.99.4.5.5 which includes this fix.  So once this new version gets included in Portage this bug will no longer be a problem.
Comment 2 Daniel Pielmeier gentoo-dev 2010-03-03 20:15:15 UTC
+*mac-3.99.4.5.6 (03 Mar 2010)
+
+  03 Mar 2010; Daniel Pielmeier <billie@gentoo.org> -mac-3.99.4.5.ebuild,
+  +mac-3.99.4.5.6.ebuild, metadata.xml:
+  Version bump. Fixes bug #304299. Remove old. Add myself to maintainers

This should be fixed in the new version. Thank you very much for the report.