mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-28 13:24:32 +00:00
Fix #178
This commit is contained in:
parent
c765d086cc
commit
4fd3513151
@ -36,6 +36,10 @@ bool is_oat(const std::string& file) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (elf_binary == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return is_oat(*elf_binary);
|
||||
|
||||
}
|
||||
@ -48,6 +52,9 @@ bool is_oat(const std::vector<uint8_t>& raw) {
|
||||
} catch (const LIEF::exception&) {
|
||||
return false;
|
||||
}
|
||||
if (elf_binary == nullptr) {
|
||||
return false;
|
||||
}
|
||||
return is_oat(*elf_binary);
|
||||
}
|
||||
|
||||
@ -84,6 +91,10 @@ oat_version_t version(const std::string& file) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (elf_binary == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return version(*elf_binary);
|
||||
}
|
||||
|
||||
@ -99,6 +110,10 @@ oat_version_t version(const std::vector<uint8_t>& raw) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (elf_binary == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return version(*elf_binary);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user