mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
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
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
Add a link
Reference in a new issue