mirror of https://git.musl-libc.org/git/musl
Browse Source
note that dlerror is specified to be non-thread-safe, so no locking is performed on the error flag or message aside from the rwlock already held by dlopen or dlsym. if 2 invocations of dlsym are generating errors at the same time, they could clobber each other's results, but the resulting string, albeit corrupt, will still be null-terminated. any use of dlerror in such a situation could not be expected to give meaningful results anyway.rs-1.0
1 changed files with 15 additions and 4 deletions
Loading…
Reference in new issue