]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
From Alexander Bluhm <Alexander.Bluhm@WiredMinds.de>
authorGary V. Vaughan <gary@gnu.org>
Fri, 29 Jun 2001 01:18:05 +0000 (01:18 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 29 Jun 2001 01:18:05 +0000 (01:18 +0000)
* libltdl/ltdl.c (lt_dlopen): Fix bad memory initialisation
assumptions.

ChangeLog
libltdl/ltdl.c

index a7eef7318d27c7deecbe1179e271b76ead15b805..81a07f6567854c6c54eeff994eb6114b1d258847 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-28  Gary V. Vaughan  <gary@gnu.org>
+
+       From  Alexander Bluhm  <Alexander.Bluhm@WiredMinds.de>
+       * libltdl/ltdl.c (lt_dlopen): Fix bad memory initialisation
+       assumptions.
+
 2001-06-27  Gary V. Vaughan  <gary@gnu.org>
 
        From brad@openbsd.org:
index 872a5701d313084e2dd4be2e7071188b2b82e8fd..03c0650e4c27ead5d4f99ac81de8261f7d112715 100644 (file)
@@ -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;