[GitHub] [apr] gmbeard opened a new pull request, #40 : dso: Check for NULL handle in apr_dso_sym

gmbeard (via GitHub) <[email protected]>
Newsgroups gmane.comp.apache.apr.devel
Message-ID <[email protected]>
gmbeard opened a new pull request, #40:
URL: https://github.com/apache/apr/pull/40

   The voidlinux package for **apr** on musl fails the `test_unload_library` test in `testdso.c` without this `NULL` check. The test unloads the dso and then immediately tries to read a symbol from the unloaded dso, and assumes this fails. I found it was actually succeeding to read the symbol. Maybe musl's `dlsym()` function assumes you won't pass it a `NULL` handle, and this test is invoking some UB.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.