LibCoredump: Restrict library name check when querying symbols
`object_name()` already returns the cleaned library name, and we currently don't have any libraries with suffixes in /usr/lib, so we can convert this to an `ends_with()` check.
This commit is contained in:
parent
d350d2dfce
commit
31c634be5a
Notes:
sideshowbarker
2024-07-18 01:19:55 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/31c634be5a4 Pull-request: https://github.com/SerenityOS/serenity/pull/10709
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ const Reader::LibraryData* Reader::library_containing(FlatPtr address) const
|
|||
auto name = region->object_name();
|
||||
|
||||
String path;
|
||||
if (name.contains(".so"))
|
||||
if (name.ends_with(".so"))
|
||||
path = String::formatted("/usr/lib/{}", name);
|
||||
else {
|
||||
path = name;
|
||||
|
|
Loading…
Add table
Reference in a new issue