| 352 | } |
| 353 | |
| 354 | bool 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 | |
| 362 | bool DexFileVerifier::CheckHeader() { |
| 363 | // Check file size from the header. |
nothing calls this directly
no outgoing calls
no test coverage detected