This commit is contained in:
Romain Thomas 2018-05-31 08:06:30 +02:00
parent c765d086cc
commit 4fd3513151

View File

@ -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);
}