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

Method CheckIndex

Bcore/src/main/cpp/dex/dex_file_verifier.cc:325–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325bool DexFileVerifier::CheckIndex(uint32_t field, uint32_t limit, const char* label) {
326 if (UNLIKELY(field >= limit)) {
327 ErrorStringPrintf("Bad index for %s: %x >= %x", label, field, limit);
328 return false;
329 }
330 return true;
331}
332
333bool DexFileVerifier::CheckValidOffsetAndSize(uint32_t offset,
334 uint32_t size,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected