]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Fix memory leak in _dl_find_object_update (bug 29062)
authorFlorian Weimer <fweimer@redhat.com>
Wed, 13 Apr 2022 12:18:28 +0000 (14:18 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 13 Apr 2022 13:14:48 +0000 (15:14 +0200)
commitcc9a4a664faac44fe62b6300b878cf5be514658b
tree4df377cfc1d819c84a43109fccbc66648ff0fe95
parentdb03235895150a91fb5bd84dd3f49b4d8ec8bc72
elf: Fix memory leak in _dl_find_object_update (bug 29062)

The count can be zero if an object has already been loaded as
an indirect dependency (so that l_searchlist.r_list in its link
map is still NULL) is promoted to global scope via RTLD_GLOBAL.

Fixes commit 5d28a8962dc ("elf: Add _dl_find_object function").

(cherry picked from commit 4a41fc3cd9cea9223ea4f13f9c766a1e149a0ccc)
NEWS
elf/dl-find_object.c