+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:
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;
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. */
goto cleanup;
}
- handle->info.ref_count = 0;
+ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct));
if (load_deplibs (handle, deplibs) == 0)
{
newhandle = handle;