pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libtool Import a patch for ltdl.c (an old one, f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/848f4051c5b7
branches: trunk
changeset: 465724:848f4051c5b7
user: cube <cube%pkgsrc.org@localhost>
date: Mon Jan 05 09:50:47 2004 +0000
description:
Import a patch for ltdl.c (an old one, from 2001, see rev. 1.134.2.1 of
that filein GNU libtool repository) to fix bad assumptions on memory
allocation. Bump PKGREVISION.
diffstat:
devel/libtool/Makefile.common | 4 ++--
devel/libtool/distinfo | 3 ++-
devel/libtool/patches/patch-as | 33 +++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 3 deletions(-)
diffs (66 lines):
diff -r 92787f0f0e12 -r 848f4051c5b7 devel/libtool/Makefile.common
--- a/devel/libtool/Makefile.common Mon Jan 05 09:44:44 2004 +0000
+++ b/devel/libtool/Makefile.common Mon Jan 05 09:50:47 2004 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.37 2003/12/11 22:15:30 reed Exp $
+# $NetBSD: Makefile.common,v 1.38 2004/01/05 09:50:47 cube Exp $
#
DISTNAME= libtool-ml-20010614
PKGPFX= ${DISTNAME:C/ml-/1.4./}
-PKGREVISION= 18
+PKGREVISION= 19
WRKSRC= ${WRKDIR}/libtool-ml
CATEGORIES= devel pkgtools
MASTER_SITES= ${MASTER_SITE_LOCAL}
diff -r 92787f0f0e12 -r 848f4051c5b7 devel/libtool/distinfo
--- a/devel/libtool/distinfo Mon Jan 05 09:44:44 2004 +0000
+++ b/devel/libtool/distinfo Mon Jan 05 09:50:47 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2003/12/12 18:05:38 reed Exp $
+$NetBSD: distinfo,v 1.32 2004/01/05 09:50:47 cube Exp $
SHA1 (libtool-ml-20010614.tar.gz) = ff746666737e420592c3017d65bf4c47f1430dac
Size (libtool-ml-20010614.tar.gz) = 784246 bytes
@@ -17,3 +17,4 @@
SHA1 (patch-am) = 2c99398e34686ea5bcecaae254b1b240b53e46df
SHA1 (patch-ao) = 4e115e9d6ddde556205dc786cde471bfee5a5e9e
SHA1 (patch-aq) = 7555ca198cacec6029a95562984673ef562aade1
+SHA1 (patch-as) = 1cdaa6963858fa509d12a1303ce1658902ac9c95
diff -r 92787f0f0e12 -r 848f4051c5b7 devel/libtool/patches/patch-as
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtool/patches/patch-as Mon Jan 05 09:50:47 2004 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-as,v 1.1 2004/01/05 09:50:47 cube Exp $
+
+--- libltdl/ltdl.c.orig 2001-04-25 06:05:03.000000000 +0200
++++ libltdl/ltdl.c
+@@ -1156,6 +1156,7 @@ presym_add_symlist (preloaded)
+ tmp = LT_DLMALLOC (lt_dlsymlists_t, 1);
+ if (tmp)
+ {
++ memset (tmp, 0, 1*sizeof(lt_dlsymlists_t));
+ tmp->syms = preloaded;
+ tmp->next = preloaded_symbols;
+ preloaded_symbols = tmp;
+@@ -2023,10 +2024,7 @@ lt_dlopen (filename)
+ return 0;
+ }
+
+- handle->info.ref_count = 0;
+- handle->depcount = 0;
+- handle->deplibs = 0;
+- handle->caller_data = 0;
++ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct));
+ newhandle = handle;
+
+ /* lt_dlclose()ing yourself is very bad! Disallow it. */
+@@ -2266,7 +2264,7 @@ lt_dlopen (filename)
+ goto cleanup;
+ }
+
+- handle->info.ref_count = 0;
++ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct));
+ if (load_deplibs (handle, deplibs) == 0)
+ {
+ newhandle = handle;
Home |
Main Index |
Thread Index |
Old Index