]> granicus.if.org Git - gc/commit
Fix crash in FirstDLOpenedLinkMap if app linked statically (Alpine Linux)
authorRyan Gonzalez <rymg19@gmail.com>
Thu, 13 Apr 2017 15:31:00 +0000 (18:31 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 24 May 2017 22:04:43 +0000 (01:04 +0300)
commit2acebe64013101e9e85c596b49bcdde0ecb05a82
tree0119d57181e63ceb57090022cfdc2b495ed65538
parent56e5492e91c3a42a25f63c9d8daf36627d2babd7
Fix crash in FirstDLOpenedLinkMap if app linked statically (Alpine Linux)

Issue #154 (bdwgc).

* dyn_load.c [SOLARISDL && !USE_PROC_FOR_LIBRARIES]
(GC_FirstDLOpenedLinkMap): Do not dereference d_un.d_ptr if it is null.
* dyn_load.c [(SCO_ELF || DGUX || HURD || LINUX || FREEBSD || NACL
|| NETBSD || OPENBSD) && !USE_PROC_FOR_LIBRARIES]
(GC_FirstDLOpenedLinkMap): Likewise.
dyn_load.c