[Bug 277906] libalias fails to report an error from dlsym()

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 Mar 2024 13:20:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277906

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib@FreeBSD.org

--- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> ---
This fix still does not completely covers all cases, for instance dlerror()
might
be armed from the previous rtld services call which was not followed by
dlerror().

The code must check for error condition by verifying the return value from
dlsym() being NULL (and not by calling dlerror()), and then it can call
dlerror() to get the string describing the error.

-- 
You are receiving this mail because:
You are the assignee for the bug.