[Bug 253081] fdlopen is broken in STABLE-12
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Feb 2 14:16:09 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253081
--- Comment #2 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=43d44842aef3972cc86ce673e84e31f372257b15
commit 43d44842aef3972cc86ce673e84e31f372257b15
Author: David Chisnall <theraven at FreeBSD.org>
AuthorDate: 2021-02-02 14:06:33 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-02-02 14:14:16 +0000
rtld: Fix null-pointer dereference
When a library is opened via fdlopen, it has a null pointer for its path
and so _rtld_bind can crash as a result of passing the null pointer to
basename() (which passes it to strrchr(), which doesn't do a null check).
PR: 253081
Submitted by: theraven
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28442
libexec/rtld-elf/rtld.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list