[all-commits] [llvm/llvm-project] 79bc8a: [LLVM][Support] check for error return from dladdr...
jeremyd2019 via All-commits
all-commits at lists.llvm.org
Wed May 7 12:39:58 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 79bc8ad5b73e123cf71bbc6084f2a1bc525eca2b
https://github.com/llvm/llvm-project/commit/79bc8ad5b73e123cf71bbc6084f2a1bc525eca2b
Author: jeremyd2019 <github at jdrake.com>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M llvm/lib/Support/Unix/Signals.inc
Log Message:
-----------
[LLVM][Support] check for error return from dladdr. (#138369)
In case of an error, the DL_info struct may have been left
uninitialized, so it is not safe to use its members.
In one error case, initialize dli_sname to nullptr explicitly, so that
the later check against nullptr is guaranteed to be safe.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list