Lines Matching refs:ptr_

205         ptr_(nullptr),  in DexFileVerifier()
249 if (LIKELY(CheckListSize(ptr_, size, sizeof(uint8_t), "encoded_value"))) { in ReadUnsignedLittleEndian()
251 result |= ((uint32_t) *(ptr_++)) << (i * 8); in ReadUnsignedLittleEndian()
410 const uint8_t* ptr_; member in art::dex::DexFileVerifier
796 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets()
797 DECODE_SIGNED_CHECKED_FROM(ptr_, size); in CheckAndGetHandlerOffsets()
814 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckAndGetHandlerOffsets()
819 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets()
827 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets()
936 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding()
938 *ptr_, in CheckPadding()
943 ptr_++; in CheckPadding()
951 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "encoded_value header")) { in CheckEncodedValue()
955 uint8_t header_byte = *(ptr_++); in CheckEncodedValue()
965 ptr_++; in CheckEncodedValue()
973 ptr_ += value_arg + 1; in CheckEncodedValue()
981 ptr_ += value_arg + 1; in CheckEncodedValue()
985 ptr_ += value_arg + 1; in CheckEncodedValue()
1093 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckEncodedArray()
1105 DECODE_UNSIGNED_CHECKED_FROM(ptr_, anno_idx); in CheckEncodedAnnotation()
1110 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckEncodedAnnotation()
1114 DECODE_UNSIGNED_CHECKED_FROM(ptr_, idx); in CheckEncodedAnnotation()
1135 ClassAccessor accessor(*dex_file_, ptr_); in CheckStaticFieldTypes()
1232 if (!CheckListSize(ptr_, 1, sizeof(dex::TypeId), "type_ids")) { in CheckIntraTypeIdItem()
1236 const dex::TypeId* type_id = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckIntraTypeIdItem()
1243 ptr_ += sizeof(dex::TypeId); in CheckIntraTypeIdItem()
1248 if (!CheckListSize(ptr_, 1, sizeof(dex::ProtoId), "proto_ids")) { in CheckIntraProtoIdItem()
1252 const dex::ProtoId* proto_id = reinterpret_cast<const dex::ProtoId*>(ptr_); in CheckIntraProtoIdItem()
1260 ptr_ += sizeof(dex::ProtoId); in CheckIntraProtoIdItem()
1265 if (!CheckListSize(ptr_, 1, sizeof(dex::FieldId), "field_ids")) { in CheckIntraFieldIdItem()
1269 const dex::FieldId* field_id = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckIntraFieldIdItem()
1276 ptr_ += sizeof(dex::FieldId); in CheckIntraFieldIdItem()
1281 if (!CheckListSize(ptr_, 1, sizeof(dex::MethodId), "method_ids")) { in CheckIntraMethodIdItem()
1285 const dex::MethodId* method_id = reinterpret_cast<const dex::MethodId*>(ptr_); in CheckIntraMethodIdItem()
1292 ptr_ += sizeof(dex::MethodId); in CheckIntraMethodIdItem()
1297 if (!CheckListSize(ptr_, 1, sizeof(dex::ClassDef), "class_defs")) { in CheckIntraClassDefItem()
1301 const dex::ClassDef* class_def = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckIntraClassDefItem()
1330 ptr_ += sizeof(dex::ClassDef); in CheckIntraClassDefItem()
1335 if (!CheckListSize(ptr_, 1, sizeof(dex::MethodHandleItem), "method_handles")) { in CheckIntraMethodHandleItem()
1339 const dex::MethodHandleItem* item = reinterpret_cast<const dex::MethodHandleItem*>(ptr_); in CheckIntraMethodHandleItem()
1370 ptr_ += sizeof(dex::MethodHandleItem); in CheckIntraMethodHandleItem()
1375 const dex::TypeList* type_list = reinterpret_cast<const dex::TypeList*>(ptr_); in CheckIntraTypeList()
1376 if (!CheckList(sizeof(dex::TypeItem), "type_list", &ptr_)) { in CheckIntraTypeList()
1396 const uint8_t* ptr = ptr_; in CheckIntraClassDataItemFields()
1425 ptr_ = ptr; in CheckIntraClassDataItemFields()
1436 const uint8_t* ptr = ptr_; in CheckIntraClassDataItemMethods()
1490 ptr_ = ptr; in CheckIntraClassDataItemMethods()
1496 const uint8_t* ptr = ptr_; in CheckIntraClassDataItem()
1507 ptr_ = ptr; in CheckIntraClassDataItem()
1518 const uint8_t* direct_methods_ptr = ptr_; in CheckIntraClassDataItem()
1534 const dex::CodeItem* code_item = reinterpret_cast<const dex::CodeItem*>(ptr_); in CheckIntraCodeItem()
1567 ptr_ = reinterpret_cast<const uint8_t*>(&insns[insns_size]); in CheckIntraCodeItem()
1582 ptr_ = accessor.GetCatchHandlerData(); in CheckIntraCodeItem()
1583 DECODE_UNSIGNED_CHECKED_FROM(ptr_, handlers_size); in CheckIntraCodeItem()
1645 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckIntraStringDataItem()
1650 if (UNLIKELY(ptr_ >= file_end)) { in CheckIntraStringDataItem()
1655 uint8_t byte = *(ptr_++); in CheckIntraStringDataItem()
1688 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
1702 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
1707 uint8_t byte3 = *(ptr_++); in CheckIntraStringDataItem()
1722 if (UNLIKELY(*(ptr_++) != '\0')) { in CheckIntraStringDataItem()
1731 DECODE_UNSIGNED_CHECKED_FROM(ptr_, dummy); in CheckIntraDebugInfoItem()
1732 DECODE_UNSIGNED_CHECKED_FROM(ptr_, parameters_size); in CheckIntraDebugInfoItem()
1739 DECODE_UNSIGNED_CHECKED_FROM(ptr_, parameter_name); in CheckIntraDebugInfoItem()
1749 uint8_t opcode = *(ptr_++); in CheckIntraDebugInfoItem()
1755 DECODE_UNSIGNED_CHECKED_FROM(ptr_, advance_pc_dummy); in CheckIntraDebugInfoItem()
1759 DECODE_SIGNED_CHECKED_FROM(ptr_, advance_line_dummy); in CheckIntraDebugInfoItem()
1763 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1768 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1775 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem()
1786 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1794 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1799 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1806 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem()
1813 DECODE_UNSIGNED_CHECKED_FROM(ptr_, sig_idx); in CheckIntraDebugInfoItem()
1823 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1837 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "annotation visibility")) { in CheckIntraAnnotationItem()
1842 switch (*(ptr_++)) { in CheckIntraAnnotationItem()
1848 ErrorStringPrintf("Bad annotation visibility: %x", *ptr_); in CheckIntraAnnotationItem()
1860 const dex::HiddenapiClassData* item = reinterpret_cast<const dex::HiddenapiClassData*>(ptr_); in CheckIntraHiddenapiClassData()
1882 const uint8_t* data_end = ptr_ + item->size_; in CheckIntraHiddenapiClassData()
1883 ptr_ += header_size; in CheckIntraHiddenapiClassData()
1912 uint32_t ptr_offset = ptr_ - reinterpret_cast<const uint8_t*>(item); in CheckIntraHiddenapiClassData()
1927 if (!DecodeUnsignedLeb128Checked(&ptr_, data_end, &decoded_flags)) { in CheckIntraHiddenapiClassData()
1929 ptr_, data_end, member_type, member.GetIndex()); in CheckIntraHiddenapiClassData()
1949 if (ptr_ != data_end) { in CheckIntraHiddenapiClassData()
1951 static_cast<uint32_t>(ptr_ - reinterpret_cast<const uint8_t*>(item)), in CheckIntraHiddenapiClassData()
1961 reinterpret_cast<const dex::AnnotationsDirectoryItem*>(ptr_); in CheckIntraAnnotationsDirectoryItem()
2042 ptr_ = reinterpret_cast<const uint8_t*>(parameter_item); in CheckIntraAnnotationsDirectoryItem()
2073 const uint8_t* start_ptr = ptr_; in CheckIntraSectionIterate()
2076 if (!CheckListSize(ptr_, 1, sizeof(dex::StringId), "string_ids")) { in CheckIntraSectionIterate()
2079 ptr_ += sizeof(dex::StringId); in CheckIntraSectionIterate()
2113 if (!CheckListSize(ptr_, 1, sizeof(dex::CallSiteIdItem), "call_site_ids")) { in CheckIntraSectionIterate()
2116 ptr_ += sizeof(dex::CallSiteIdItem); in CheckIntraSectionIterate()
2132 if (!CheckList(sizeof(dex::AnnotationSetRefItem), "annotation_set_ref_list", &ptr_)) { in CheckIntraSectionIterate()
2138 if (!CheckList(sizeof(uint32_t), "annotation_set_item", &ptr_)) { in CheckIntraSectionIterate()
2196 if (start_ptr == ptr_) { in CheckIntraSectionIterate()
2210 aligned_offset = ptr_ - begin_; in CheckIntraSectionIterate()
2288 size_t next_offset = ptr_ - begin_; in CheckIntraDataSection()
2305 ptr_ = begin_; in CheckIntraSection()
2344 ptr_ = begin_ + header_->header_size_; in CheckIntraSection()
2353 offset = ptr_ - begin_; \ in CheckIntraSection()
2373 ptr_ += sizeof(uint32_t) + (map->size_ * sizeof(dex::MapItem)); in CheckIntraSection()
2382 offset = ptr_ - begin_; \ in CheckIntraSection()
2393 offset = ptr_ - begin_; \ in CheckIntraSection()
2483 const dex::StringId* item = reinterpret_cast<const dex::StringId*>(ptr_); in CheckInterStringIdItem()
2498 ptr_ += sizeof(dex::StringId); in CheckInterStringIdItem()
2503 const dex::TypeId* item = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckInterTypeIdItem()
2529 ptr_ += sizeof(dex::TypeId); in CheckInterTypeIdItem()
2534 const dex::ProtoId* item = reinterpret_cast<const dex::ProtoId*>(ptr_); in CheckInterProtoIdItem()
2610 ptr_ += sizeof(dex::ProtoId); in CheckInterProtoIdItem()
2615 const dex::FieldId* item = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckInterFieldIdItem()
2657 ptr_ += sizeof(dex::FieldId); in CheckInterFieldIdItem()
2662 const dex::MethodId* item = reinterpret_cast<const dex::MethodId*>(ptr_); in CheckInterMethodIdItem()
2703 ptr_ += sizeof(dex::MethodId); in CheckInterMethodIdItem()
2708 const dex::ClassDef* item = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckInterClassDefItem()
2870 ptr_ += sizeof(dex::ClassDef); in CheckInterClassDefItem()
2875 const dex::CallSiteIdItem* item = reinterpret_cast<const dex::CallSiteIdItem*>(ptr_); in CheckInterCallSiteIdItem()
2925 ptr_ += sizeof(dex::CallSiteIdItem); in CheckInterCallSiteIdItem()
2930 const dex::AnnotationSetRefList* list = reinterpret_cast<const dex::AnnotationSetRefList*>(ptr_); in CheckInterAnnotationSetRefList()
2942 ptr_ = reinterpret_cast<const uint8_t*>(item); in CheckInterAnnotationSetRefList()
2947 const dex::AnnotationSetItem* set = reinterpret_cast<const dex::AnnotationSetItem*>(ptr_); in CheckInterAnnotationSetItem()
2972 ptr_ = reinterpret_cast<const uint8_t*>(offsets); in CheckInterAnnotationSetItem()
2977 ClassAccessor accessor(*dex_file_, ptr_); in CheckInterClassDataItem()
3038 ptr_ = it.GetDataPointer(); in CheckInterClassDataItem()
3044 reinterpret_cast<const dex::AnnotationsDirectoryItem*>(ptr_); in CheckInterAnnotationsDirectoryItem()
3045 uint32_t defining_class = FindFirstAnnotationsDirectoryDefiner(ptr_); in CheckInterAnnotationsDirectoryItem()
3108 ptr_ = reinterpret_cast<const uint8_t*>(parameter_item); in CheckInterAnnotationsDirectoryItem()
3130 ptr_ = begin_ + new_offset; in CheckInterSectionIterate()
3131 const uint8_t* prev_ptr = ptr_; in CheckInterSectionIterate()
3232 offset = ptr_ - begin_; in CheckInterSectionIterate()