MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / IsVersionValid

Method IsVersionValid

Bcore/src/main/cpp/dex/standard_dex_file.cc:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool StandardDexFile::IsVersionValid(const uint8_t* magic) {
54 const uint8_t* version = &magic[sizeof(kDexMagic)];
55 for (uint32_t i = 0; i < kNumDexVersions; i++) {
56 if (memcmp(version, kDexMagicVersions[i], kDexVersionLen) == 0) {
57 return true;
58 }
59 }
60 return false;
61}
62
63bool StandardDexFile::IsMagicValid() const {
64 return IsMagicValid(header_->magic_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected