[llvm] [llvm-symbolizer] Recognize AIX big archive (PR #150401)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 01:45:22 PDT 2025
================
@@ -648,7 +741,9 @@ LLVMSymbolizer::getOrCreateModuleInfo(StringRef ModuleName) {
auto I = Modules.find(ModuleName);
if (I != Modules.end()) {
- recordAccess(BinaryForPath.find(BinaryName)->second);
+ auto BinIter = BinaryForPath.find(BinaryName);
+ if (BinIter != BinaryForPath.end())
----------------
midhuncodes7 wrote:
In some iteration the BinaryForPath.find(BinaryName) fails and returns BinaryForPath.end() but the previous code doesn't check for it, so it ends up calling pushEvictor on invalid memory. This results in a crash, hence a check is added. The behaviour is not changed its just split into multiple steps having the same logic
https://github.com/llvm/llvm-project/pull/150401
More information about the llvm-commits
mailing list