Lines Matching refs:CheckIndex

236   ALWAYS_INLINE bool CheckIndex(uint32_t field, uint32_t limit, const char* label) {  in CheckIndex()  function in art::dex::DexFileVerifier
815 if (!CheckIndex(type_idx, header_->type_ids_size_, "handler type_idx")) { in CheckAndGetHandlerOffsets()
890 if (!CheckIndex(string_idx, header_->string_ids_size_, "method flags verification")) { in CheckClassDataItemMethod()
993 if (!CheckIndex(idx, header_->string_ids_size_, "encoded_value string")) { in CheckEncodedValue()
1004 if (!CheckIndex(idx, header_->type_ids_size_, "encoded_value type")) { in CheckEncodedValue()
1016 if (!CheckIndex(idx, header_->field_ids_size_, "encoded_value field")) { in CheckEncodedValue()
1027 if (!CheckIndex(idx, header_->method_ids_size_, "encoded_value method")) { in CheckEncodedValue()
1068 if (!CheckIndex(idx, header_->proto_ids_size_, "method_type value")) { in CheckEncodedValue()
1079 if (!CheckIndex(idx, dex_file_->NumMethodHandles(), "method_handle value")) { in CheckEncodedValue()
1106 if (!CheckIndex(anno_idx, header_->type_ids_size_, "encoded_annotation type_idx")) { in CheckEncodedAnnotation()
1115 if (!CheckIndex(idx, header_->string_ids_size_, "annotation_element name_idx")) { in CheckEncodedAnnotation()
1237 if (!CheckIndex(type_id->descriptor_idx_.index_, in CheckIntraTypeIdItem()
1253 if (!CheckIndex(proto_id->shorty_idx_.index_, header_->string_ids_size_, "proto_id.shorty") || in CheckIntraProtoIdItem()
1254 !CheckIndex(proto_id->return_type_idx_.index_, in CheckIntraProtoIdItem()
1270 if (!CheckIndex(field_id->class_idx_.index_, header_->type_ids_size_, "field_id.class") || in CheckIntraFieldIdItem()
1271 !CheckIndex(field_id->type_idx_.index_, header_->type_ids_size_, "field_id.type") || in CheckIntraFieldIdItem()
1272 !CheckIndex(field_id->name_idx_.index_, header_->string_ids_size_, "field_id.name")) { in CheckIntraFieldIdItem()
1286 if (!CheckIndex(method_id->class_idx_.index_, header_->type_ids_size_, "method_id.class") || in CheckIntraMethodIdItem()
1287 !CheckIndex(method_id->proto_idx_.index_, header_->proto_ids_size_, "method_id.proto") || in CheckIntraMethodIdItem()
1288 !CheckIndex(method_id->name_idx_.index_, header_->string_ids_size_, "method_id.name")) { in CheckIntraMethodIdItem()
1302 if (!CheckIndex(class_def->class_idx_.index_, header_->type_ids_size_, "class_def.class")) { in CheckIntraClassDefItem()
1314 } else if (!CheckIndex(class_def->superclass_idx_.index_, in CheckIntraClassDefItem()
1354 if (!CheckIndex(index, header_->field_ids_size_, "method_handle_item field_idx")) { in CheckIntraMethodHandleItem()
1363 if (!CheckIndex(index, header_->method_ids_size_, "method_handle_item method_idx")) { in CheckIntraMethodHandleItem()
1381 if (!CheckIndex(type_list->GetTypeItem(i).type_idx_.index_, in CheckIntraTypeList()
1409 if (!CheckIndex(curr_index, header_->field_ids_size_, "class_data_item field_idx")) { in CheckIntraClassDataItemFields()
1457 if (!CheckIndex(curr_index, header_->method_ids_size_, "class_data_item method_idx")) { in CheckIntraClassDataItemMethods()
1742 … if (!CheckIndex(parameter_name, header_->string_ids_size_, "debug_info_item parameter_name")) { in CheckIntraDebugInfoItem()
1771 if (!CheckIndex(name_idx, header_->string_ids_size_, "DBG_START_LOCAL name_idx")) { in CheckIntraDebugInfoItem()
1778 if (!CheckIndex(type_idx, header_->type_ids_size_, "DBG_START_LOCAL type_idx")) { in CheckIntraDebugInfoItem()
1802 … if (!CheckIndex(name_idx, header_->string_ids_size_, "DBG_START_LOCAL_EXTENDED name_idx")) { in CheckIntraDebugInfoItem()
1809 if (!CheckIndex(type_idx, header_->type_ids_size_, "DBG_START_LOCAL_EXTENDED type_idx")) { in CheckIntraDebugInfoItem()
1816 if (!CheckIndex(sig_idx, header_->string_ids_size_, "DBG_START_LOCAL_EXTENDED sig_idx")) { in CheckIntraDebugInfoItem()
1826 if (!CheckIndex(name_idx, header_->string_ids_size_, "DBG_SET_FILE name_idx")) { in CheckIntraDebugInfoItem()
1979 if (!CheckIndex(field_item->field_idx_, header_->field_ids_size_, "field annotation")) { in CheckIntraAnnotationsDirectoryItem()
2004 if (!CheckIndex(method_item->method_idx_, header_->method_ids_size_, "method annotation")) { in CheckIntraAnnotationsDirectoryItem()
2027 if (!CheckIndex(parameter_item->method_idx_, in CheckIntraAnnotationsDirectoryItem()
2558 if (!CheckIndex(it.GetTypeIdx().index_, in CheckInterProtoIdItem()
2679 if (UNLIKELY(!CheckIndex(item->proto_idx_.index_, dex_file_->NumProtoIds(), in CheckInterMethodIdItem()