bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for segmentation fault in tryall_dlopen_module in ltdl.c


From: Alexander Bluhm
Subject: Fix for segmentation fault in tryall_dlopen_module in ltdl.c
Date: Tue, 8 Jan 2002 22:38:25 +0100
User-agent: Mutt/1.3.16i

Hi,

I had a Segmentation Fault on AIX in ltdl.c when trying to load 
a module with unresolved symbols but no path in its name.
Below is a fix for the problem. The patch is for libtool version 1.4.2.

Alexander


diff -ru libtool-1.4.2.orig/ChangeLog libtool-1.4.2/ChangeLog
--- libtool-1.4.2.orig/ChangeLog        Tue Sep 11 05:33:37 2001
+++ libtool-1.4.2/ChangeLog     Tue Jan  8 22:26:06 2002
@@ -1,3 +1,7 @@
+2002-01-08  Alexander Bluhm  <address@hidden>
+       * libltdl/ltdl.c (find_module): Do not call tryall_dlopen_module
+        with an invalid dirname argument.
+
 2001-09-11  Gary V. Vaughan  <address@hidden>
 
        GNU libtool 1.4.2 was released.
diff -ru libtool-1.4.2.orig/libltdl/ltdl.c libtool-1.4.2/libltdl/ltdl.c
--- libtool-1.4.2.orig/libltdl/ltdl.c   Tue Sep 11 04:02:07 2001
+++ libtool-1.4.2/libltdl/ltdl.c        Tue Jan  8 22:20:53 2002
@@ -2020,11 +2020,12 @@
        }
 
       /* maybe it was moved to another directory */
-      {
+      if (dir)
+        {
          if (tryall_dlopen_module (handle,
                                    (const char *) 0, dir, dlname) == 0)
            return 0;
-      }
+        }
     }
 
   return 1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]