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
792 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets()
793 DECODE_SIGNED_CHECKED_FROM(ptr_, size); in CheckAndGetHandlerOffsets()
810 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckAndGetHandlerOffsets()
815 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets()
823 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets()
932 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding()
934 *ptr_, in CheckPadding()
939 ptr_++; in CheckPadding()
947 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "encoded_value header")) { in CheckEncodedValue()
951 uint8_t header_byte = *(ptr_++); in CheckEncodedValue()
961 ptr_++; in CheckEncodedValue()
969 ptr_ += value_arg + 1; in CheckEncodedValue()
977 ptr_ += value_arg + 1; in CheckEncodedValue()
981 ptr_ += value_arg + 1; in CheckEncodedValue()
1089 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckEncodedArray()
1101 DECODE_UNSIGNED_CHECKED_FROM(ptr_, anno_idx); in CheckEncodedAnnotation()
1106 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckEncodedAnnotation()
1110 DECODE_UNSIGNED_CHECKED_FROM(ptr_, idx); in CheckEncodedAnnotation()
1131 ClassAccessor accessor(*dex_file_, ptr_); in CheckStaticFieldTypes()
1228 if (!CheckListSize(ptr_, 1, sizeof(dex::TypeId), "type_ids")) { in CheckIntraTypeIdItem()
1232 const dex::TypeId* type_id = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckIntraTypeIdItem()
1239 ptr_ += sizeof(dex::TypeId); in CheckIntraTypeIdItem()
1244 if (!CheckListSize(ptr_, 1, sizeof(dex::ProtoId), "proto_ids")) { in CheckIntraProtoIdItem()
1248 const dex::ProtoId* proto_id = reinterpret_cast<const dex::ProtoId*>(ptr_); in CheckIntraProtoIdItem()
1256 ptr_ += sizeof(dex::ProtoId); in CheckIntraProtoIdItem()
1261 if (!CheckListSize(ptr_, 1, sizeof(dex::FieldId), "field_ids")) { in CheckIntraFieldIdItem()
1265 const dex::FieldId* field_id = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckIntraFieldIdItem()
1272 ptr_ += sizeof(dex::FieldId); in CheckIntraFieldIdItem()
1277 if (!CheckListSize(ptr_, 1, sizeof(dex::MethodId), "method_ids")) { in CheckIntraMethodIdItem()
1281 const dex::MethodId* method_id = reinterpret_cast<const dex::MethodId*>(ptr_); in CheckIntraMethodIdItem()
1288 ptr_ += sizeof(dex::MethodId); in CheckIntraMethodIdItem()
1293 if (!CheckListSize(ptr_, 1, sizeof(dex::ClassDef), "class_defs")) { in CheckIntraClassDefItem()
1297 const dex::ClassDef* class_def = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckIntraClassDefItem()
1326 ptr_ += sizeof(dex::ClassDef); in CheckIntraClassDefItem()
1331 if (!CheckListSize(ptr_, 1, sizeof(dex::MethodHandleItem), "method_handles")) { in CheckIntraMethodHandleItem()
1335 const dex::MethodHandleItem* item = reinterpret_cast<const dex::MethodHandleItem*>(ptr_); in CheckIntraMethodHandleItem()
1366 ptr_ += sizeof(dex::MethodHandleItem); in CheckIntraMethodHandleItem()
1371 const dex::TypeList* type_list = reinterpret_cast<const dex::TypeList*>(ptr_); in CheckIntraTypeList()
1372 if (!CheckList(sizeof(dex::TypeItem), "type_list", &ptr_)) { in CheckIntraTypeList()
1392 const uint8_t* ptr = ptr_; in CheckIntraClassDataItemFields()
1421 ptr_ = ptr; in CheckIntraClassDataItemFields()
1432 const uint8_t* ptr = ptr_; in CheckIntraClassDataItemMethods()
1486 ptr_ = ptr; in CheckIntraClassDataItemMethods()
1492 const uint8_t* ptr = ptr_; in CheckIntraClassDataItem()
1503 ptr_ = ptr; in CheckIntraClassDataItem()
1514 const uint8_t* direct_methods_ptr = ptr_; in CheckIntraClassDataItem()
1530 const dex::CodeItem* code_item = reinterpret_cast<const dex::CodeItem*>(ptr_); in CheckIntraCodeItem()
1563 ptr_ = reinterpret_cast<const uint8_t*>(&insns[insns_size]); in CheckIntraCodeItem()
1578 ptr_ = accessor.GetCatchHandlerData(); in CheckIntraCodeItem()
1579 DECODE_UNSIGNED_CHECKED_FROM(ptr_, handlers_size); in CheckIntraCodeItem()
1641 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckIntraStringDataItem()
1646 if (UNLIKELY(ptr_ >= file_end)) { in CheckIntraStringDataItem()
1651 uint8_t byte = *(ptr_++); in CheckIntraStringDataItem()
1684 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
1698 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
1703 uint8_t byte3 = *(ptr_++); in CheckIntraStringDataItem()
1718 if (UNLIKELY(*(ptr_++) != '\0')) { in CheckIntraStringDataItem()
1727 DECODE_UNSIGNED_CHECKED_FROM(ptr_, unused_line_start); in CheckIntraDebugInfoItem()
1728 DECODE_UNSIGNED_CHECKED_FROM(ptr_, parameters_size); in CheckIntraDebugInfoItem()
1735 DECODE_UNSIGNED_CHECKED_FROM(ptr_, parameter_name); in CheckIntraDebugInfoItem()
1745 uint8_t opcode = *(ptr_++); in CheckIntraDebugInfoItem()
1751 DECODE_UNSIGNED_CHECKED_FROM(ptr_, unused_advance_pc); in CheckIntraDebugInfoItem()
1755 DECODE_SIGNED_CHECKED_FROM(ptr_, unused_advance_line); in CheckIntraDebugInfoItem()
1759 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1764 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1771 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem()
1782 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1790 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1795 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1802 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem()
1809 DECODE_UNSIGNED_CHECKED_FROM(ptr_, sig_idx); in CheckIntraDebugInfoItem()
1819 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1833 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "annotation visibility")) { in CheckIntraAnnotationItem()
1838 switch (*(ptr_++)) { in CheckIntraAnnotationItem()
1844 ErrorStringPrintf("Bad annotation visibility: %x", *ptr_); in CheckIntraAnnotationItem()
1856 const dex::HiddenapiClassData* item = reinterpret_cast<const dex::HiddenapiClassData*>(ptr_); in CheckIntraHiddenapiClassData()
1878 const uint8_t* data_end = ptr_ + item->size_; in CheckIntraHiddenapiClassData()
1879 ptr_ += header_size; in CheckIntraHiddenapiClassData()
1908 uint32_t ptr_offset = ptr_ - reinterpret_cast<const uint8_t*>(item); in CheckIntraHiddenapiClassData()
1923 if (!DecodeUnsignedLeb128Checked(&ptr_, data_end, &decoded_flags)) { in CheckIntraHiddenapiClassData()
1925 ptr_, data_end, member_type, member.GetIndex()); in CheckIntraHiddenapiClassData()
1945 if (ptr_ != data_end) { in CheckIntraHiddenapiClassData()
1947 static_cast<uint32_t>(ptr_ - reinterpret_cast<const uint8_t*>(item)), in CheckIntraHiddenapiClassData()
1957 reinterpret_cast<const dex::AnnotationsDirectoryItem*>(ptr_); in CheckIntraAnnotationsDirectoryItem()
2038 ptr_ = reinterpret_cast<const uint8_t*>(parameter_item); in CheckIntraAnnotationsDirectoryItem()
2069 const uint8_t* start_ptr = ptr_; in CheckIntraSectionIterate()
2072 if (!CheckListSize(ptr_, 1, sizeof(dex::StringId), "string_ids")) { in CheckIntraSectionIterate()
2075 ptr_ += sizeof(dex::StringId); in CheckIntraSectionIterate()
2109 if (!CheckListSize(ptr_, 1, sizeof(dex::CallSiteIdItem), "call_site_ids")) { in CheckIntraSectionIterate()
2112 ptr_ += sizeof(dex::CallSiteIdItem); in CheckIntraSectionIterate()
2128 if (!CheckList(sizeof(dex::AnnotationSetRefItem), "annotation_set_ref_list", &ptr_)) { in CheckIntraSectionIterate()
2134 if (!CheckList(sizeof(uint32_t), "annotation_set_item", &ptr_)) { in CheckIntraSectionIterate()
2192 if (start_ptr == ptr_) { in CheckIntraSectionIterate()
2206 aligned_offset = ptr_ - begin_; in CheckIntraSectionIterate()
2284 size_t next_offset = ptr_ - begin_; in CheckIntraDataSection()
2301 ptr_ = begin_; in CheckIntraSection()
2340 ptr_ = begin_ + header_->header_size_; in CheckIntraSection()
2349 offset = ptr_ - begin_; \ in CheckIntraSection()
2369 ptr_ += sizeof(uint32_t) + (map->size_ * sizeof(dex::MapItem)); in CheckIntraSection()
2378 offset = ptr_ - begin_; \ in CheckIntraSection()
2389 offset = ptr_ - begin_; \ in CheckIntraSection()
2479 const dex::StringId* item = reinterpret_cast<const dex::StringId*>(ptr_); in CheckInterStringIdItem()
2494 ptr_ += sizeof(dex::StringId); in CheckInterStringIdItem()
2499 const dex::TypeId* item = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckInterTypeIdItem()
2525 ptr_ += sizeof(dex::TypeId); in CheckInterTypeIdItem()
2530 const dex::ProtoId* item = reinterpret_cast<const dex::ProtoId*>(ptr_); in CheckInterProtoIdItem()
2606 ptr_ += sizeof(dex::ProtoId); in CheckInterProtoIdItem()
2611 const dex::FieldId* item = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckInterFieldIdItem()
2653 ptr_ += sizeof(dex::FieldId); in CheckInterFieldIdItem()
2658 const dex::MethodId* item = reinterpret_cast<const dex::MethodId*>(ptr_); in CheckInterMethodIdItem()
2699 ptr_ += sizeof(dex::MethodId); in CheckInterMethodIdItem()
2704 const dex::ClassDef* item = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckInterClassDefItem()
2866 ptr_ += sizeof(dex::ClassDef); in CheckInterClassDefItem()
2871 const dex::CallSiteIdItem* item = reinterpret_cast<const dex::CallSiteIdItem*>(ptr_); in CheckInterCallSiteIdItem()
2921 ptr_ += sizeof(dex::CallSiteIdItem); in CheckInterCallSiteIdItem()
2926 const dex::AnnotationSetRefList* list = reinterpret_cast<const dex::AnnotationSetRefList*>(ptr_); in CheckInterAnnotationSetRefList()
2938 ptr_ = reinterpret_cast<const uint8_t*>(item); in CheckInterAnnotationSetRefList()
2943 const dex::AnnotationSetItem* set = reinterpret_cast<const dex::AnnotationSetItem*>(ptr_); in CheckInterAnnotationSetItem()
2968 ptr_ = reinterpret_cast<const uint8_t*>(offsets); in CheckInterAnnotationSetItem()
2973 ClassAccessor accessor(*dex_file_, ptr_); in CheckInterClassDataItem()
3034 ptr_ = it.GetDataPointer(); in CheckInterClassDataItem()
3040 reinterpret_cast<const dex::AnnotationsDirectoryItem*>(ptr_); in CheckInterAnnotationsDirectoryItem()
3041 uint32_t defining_class = FindFirstAnnotationsDirectoryDefiner(ptr_); in CheckInterAnnotationsDirectoryItem()
3104 ptr_ = reinterpret_cast<const uint8_t*>(parameter_item); in CheckInterAnnotationsDirectoryItem()
3126 ptr_ = begin_ + new_offset; in CheckInterSectionIterate()
3127 const uint8_t* prev_ptr = ptr_; in CheckInterSectionIterate()
3228 offset = ptr_ - begin_; in CheckInterSectionIterate()