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

Method CheckSizeLimit

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

Source from the content-addressed store, hash-verified

352}
353
354bool DexFileVerifier::CheckSizeLimit(uint32_t size, uint32_t limit, const char* label) {
355 if (size > limit) {
356 ErrorStringPrintf("Size(%u) should not exceed limit(%u) for %s.", size, limit, label);
357 return false;
358 }
359 return true;
360}
361
362bool DexFileVerifier::CheckHeader() {
363 // Check file size from the header.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected