| 189 | } |
| 190 | |
| 191 | const DexFile::ProtoId* DexFileVerifier::CheckLoadProtoId(uint32_t idx, const char* err_string) { |
| 192 | if (UNLIKELY(!CheckIndex(idx, dex_file_->NumProtoIds(), err_string))) { |
| 193 | return nullptr; |
| 194 | } |
| 195 | return &dex_file_->GetProtoId(idx); |
| 196 | } |
| 197 | |
| 198 | // Helper macro to load string and return false on error. |
| 199 | #define LOAD_STRING(var, idx, error) \ |
nothing calls this directly
no test coverage detected