[42775] trunk/dports/science/libframe
ram at macports.org
ram at macports.org
Sun Nov 30 13:25:29 PST 2008
Revision: 42775
http://trac.macports.org/changeset/42775
Author: ram at macports.org
Date: 2008-11-30 13:25:29 -0800 (Sun, 30 Nov 2008)
Log Message:
-----------
science/libframe: fix memory corruption bug
Modified Paths:
--------------
trunk/dports/science/libframe/Portfile
Added Paths:
-----------
trunk/dports/science/libframe/files/
trunk/dports/science/libframe/files/patch-src_FrameL.c.diff
Modified: trunk/dports/science/libframe/Portfile
===================================================================
--- trunk/dports/science/libframe/Portfile 2008-11-30 20:52:03 UTC (rev 42774)
+++ trunk/dports/science/libframe/Portfile 2008-11-30 21:25:29 UTC (rev 42775)
@@ -4,6 +4,7 @@
name libframe
version 6.24-8
+revision 1
categories science
platforms darwin
maintainers ram
@@ -25,6 +26,8 @@
depends_lib port:zlib
+patchfiles patch-src_FrameL.c.diff
+
configure.args --disable-python
livecheck.check regex
Added: trunk/dports/science/libframe/files/patch-src_FrameL.c.diff
===================================================================
--- trunk/dports/science/libframe/files/patch-src_FrameL.c.diff (rev 0)
+++ trunk/dports/science/libframe/files/patch-src_FrameL.c.diff 2008-11-30 21:25:29 UTC (rev 42775)
@@ -0,0 +1,11 @@
+--- src/FrameL.c.orig 2008-11-28 12:05:32.000000000 -0600
++++ src/FrameL.c 2008-11-28 12:05:59.000000000 -0600
+@@ -9220,7 +9220,7 @@
+ /*--------------- special cases -----------*/
+
+ local = (unsigned char *) buf;
+- swap = (unsigned char *) malloc(nData*sizeof(long));
++ swap = (unsigned char *) malloc(nData*sizeof(FRLONG));
+ if(swap == NULL) {FrError(3,"FrReadVL","malloc failed");
+ iFile->error = FR_ERROR_MALLOC_FAILED;
+ return;}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081130/eb6f980c/attachment-0001.html>
More information about the macports-changes
mailing list