Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2024 13:20:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 277906] libalias fails to report an error from dlsym()
Message-ID:  <bug-277906-227-aIjxTpj1tt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-277906-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-277906-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277906

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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277906-227-aIjxTpj1tt>