Fix crash in ELFDB if it tried loading something that wasn't an ELF

This commit is contained in:
Ryan Houdek committed 2021-03-31 23:37:56 -07:00
1 parent 490352f568
commit 61cd3eb3ce
1 file changed
+5
+5
View File
@@ -61,6 +61,11 @@ ELFSymbolDatabase::ELFSymbolDatabase(::ELFLoader::ELFContainer *file)
: File {file} {
FillLibrarySearchPaths();
// Don't try to load the file if it was invalid
if (!File->WasLoaded()) {
return;
}
std::vector<std::string> UnfilledDependencies;
std::vector<ELFInfo*> NewLibraries;