GNU bug report logs - #29576
crasher in preopen.c

Previous Next

Package: libtool;

Reported by: Arun Raghavan <arun <at> arunraghavan.net>

Date: Tue, 5 Dec 2017 07:03:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arun Raghavan <arun <at> arunraghavan.net>
To: bug-libtool <at> gnu.org
Subject: crasher in preopen.c
Date: Tue, 05 Dec 2017 12:09:53 +0530
Hello,
I found the following bug in the preopen loader.

The precise point of the crash is:

  http://git.savannah.gnu.org/cgit/libtool.git/tree/libltdl/loaders/preopen.c#n282

Pasting the code here for reference:

   if (symlist[1].name && STREQ (symlist[1].name, "@INIT@"))

This is triggered when my program sets:

  const lt_dlsymlist lt_preloaded_symbols[] = { { 0, 0 } };

The cause is clearly the use of symlist[1] om that code. Presumably it
should be symlist[0]?

Cheers,
Arun




This bug report was last modified 7 years and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.