Lines Matching refs:ptr_

135         ptr_(nullptr),  in DexFileVerifier()
259 if (!CheckListSize(ptr_, size, sizeof(uint8_t), "encoded_value")) { in ReadUnsignedLittleEndian()
264 *result |= ((uint32_t) * (ptr_++)) << (i * 8); in ReadUnsignedLittleEndian()
437 const uint8_t* ptr_; member in art::dex::DexFileVerifier
867 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets()
868 DECODE_SIGNED_CHECKED_FROM(ptr_, size); in CheckAndGetHandlerOffsets()
885 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckAndGetHandlerOffsets()
890 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets()
898 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets()
1000 size_t offset = PtrToOffset(ptr_); in CheckPadding()
1006 ptr_ += aligned_offset - offset; in CheckPadding()
1010 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding()
1012 *ptr_, in CheckPadding()
1017 ptr_++; in CheckPadding()
1025 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "encoded_value header")) { in CheckEncodedValue()
1029 uint8_t header_byte = *(ptr_++); in CheckEncodedValue()
1201 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckEncodedArray()
1216 DECODE_UNSIGNED_CHECKED_FROM(ptr_, anno_idx); in CheckEncodedAnnotation()
1221 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckEncodedAnnotation()
1228 DECODE_UNSIGNED_CHECKED_FROM(ptr_, idx); in CheckAnnotationElement()
1265 ClassAccessor accessor(*dex_file_, ptr_); in CheckStaticFieldTypes()
1365 if (!CheckListSize(ptr_, 1, sizeof(dex::TypeId), "type_ids")) { in CheckIntraTypeIdItem()
1369 const dex::TypeId* type_id = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckIntraTypeIdItem()
1376 ptr_ += sizeof(dex::TypeId); in CheckIntraTypeIdItem()
1381 if (!CheckListSize(ptr_, 1, sizeof(dex::ProtoId), "proto_ids")) { in CheckIntraProtoIdItem()
1385 const dex::ProtoId* proto_id = reinterpret_cast<const dex::ProtoId*>(ptr_); in CheckIntraProtoIdItem()
1393 ptr_ += sizeof(dex::ProtoId); in CheckIntraProtoIdItem()
1398 if (!CheckListSize(ptr_, 1, sizeof(dex::FieldId), "field_ids")) { in CheckIntraFieldIdItem()
1402 const dex::FieldId* field_id = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckIntraFieldIdItem()
1409 ptr_ += sizeof(dex::FieldId); in CheckIntraFieldIdItem()
1414 if (!CheckListSize(ptr_, 1, sizeof(dex::MethodId), "method_ids")) { in CheckIntraMethodIdItem()
1418 const dex::MethodId* method_id = reinterpret_cast<const dex::MethodId*>(ptr_); in CheckIntraMethodIdItem()
1425 ptr_ += sizeof(dex::MethodId); in CheckIntraMethodIdItem()
1430 if (!CheckListSize(ptr_, 1, sizeof(dex::ClassDef), "class_defs")) { in CheckIntraClassDefItem()
1434 const dex::ClassDef* class_def = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckIntraClassDefItem()
1463 ptr_ += sizeof(dex::ClassDef); in CheckIntraClassDefItem()
1468 if (!CheckListSize(ptr_, 1, sizeof(dex::MethodHandleItem), "method_handles")) { in CheckIntraMethodHandleItem()
1472 const dex::MethodHandleItem* item = reinterpret_cast<const dex::MethodHandleItem*>(ptr_); in CheckIntraMethodHandleItem()
1503 ptr_ += sizeof(dex::MethodHandleItem); in CheckIntraMethodHandleItem()
1508 const dex::TypeList* type_list = reinterpret_cast<const dex::TypeList*>(ptr_); in CheckIntraTypeList()
1509 if (!CheckList(sizeof(dex::TypeItem), "type_list", &ptr_)) { in CheckIntraTypeList()
1529 const uint8_t* ptr = ptr_; in CheckIntraClassDataItemFields()
1557 ptr_ = ptr; in CheckIntraClassDataItemFields()
1568 const uint8_t* ptr = ptr_; in CheckIntraClassDataItemMethods()
1621 ptr_ = ptr; in CheckIntraClassDataItemMethods()
1627 const uint8_t* ptr = ptr_; in CheckIntraClassDataItem()
1636 ptr_ = ptr; in CheckIntraClassDataItem()
1647 const uint8_t* direct_methods_ptr = ptr_; in CheckIntraClassDataItem()
1663 const dex::CodeItem* code_item = reinterpret_cast<const dex::CodeItem*>(ptr_); in CheckIntraCodeItem()
1698 ptr_ = reinterpret_cast<const uint8_t*>(&insns[insns_size]); in CheckIntraCodeItem()
1713 ptr_ = accessor.GetCatchHandlerData(); in CheckIntraCodeItem()
1714 DECODE_UNSIGNED_CHECKED_FROM(ptr_, handlers_size); in CheckIntraCodeItem()
1776 DECODE_UNSIGNED_CHECKED_FROM(ptr_, size); in CheckIntraStringDataItem()
1779 size_t available_bytes = static_cast<size_t>(file_end - ptr_); in CheckIntraStringDataItem()
1789 uint8_t byte = *(ptr_++); in CheckIntraStringDataItem()
1828 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
1848 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
1853 uint8_t byte3 = *(ptr_++); in CheckIntraStringDataItem()
1874 if (UNLIKELY(*(ptr_++) != '\0')) { in CheckIntraStringDataItem()
1879 DCHECK_EQ(available_bytes, static_cast<size_t>(file_end - ptr_)); in CheckIntraStringDataItem()
1884 DECODE_UNSIGNED_CHECKED_FROM(ptr_, unused_line_start); in CheckIntraDebugInfoItem()
1885 DECODE_UNSIGNED_CHECKED_FROM(ptr_, parameters_size); in CheckIntraDebugInfoItem()
1892 DECODE_UNSIGNED_CHECKED_FROM(ptr_, parameter_name); in CheckIntraDebugInfoItem()
1902 if (UNLIKELY(ptr_ >= EndOfFile())) { in CheckIntraDebugInfoItem()
1906 uint8_t opcode = *(ptr_++); in CheckIntraDebugInfoItem()
1912 DECODE_UNSIGNED_CHECKED_FROM(ptr_, unused_advance_pc); in CheckIntraDebugInfoItem()
1916 DECODE_SIGNED_CHECKED_FROM(ptr_, unused_advance_line); in CheckIntraDebugInfoItem()
1920 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1925 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1932 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem()
1943 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1951 DECODE_UNSIGNED_CHECKED_FROM(ptr_, reg_num); in CheckIntraDebugInfoItem()
1956 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1963 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem()
1970 DECODE_UNSIGNED_CHECKED_FROM(ptr_, sig_idx); in CheckIntraDebugInfoItem()
1980 DECODE_UNSIGNED_CHECKED_FROM(ptr_, name_idx); in CheckIntraDebugInfoItem()
1994 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "annotation visibility")) { in CheckIntraAnnotationItem()
1999 uint8_t visibility = *(ptr_++); in CheckIntraAnnotationItem()
2019 const dex::HiddenapiClassData* item = reinterpret_cast<const dex::HiddenapiClassData*>(ptr_); in CheckIntraHiddenapiClassData()
2043 const uint8_t* data_end = ptr_ + item->size_; in CheckIntraHiddenapiClassData()
2044 ptr_ = data_end; in CheckIntraHiddenapiClassData()
2050 reinterpret_cast<const dex::AnnotationsDirectoryItem*>(ptr_); in CheckIntraAnnotationsDirectoryItem()
2131 ptr_ = reinterpret_cast<const uint8_t*>(parameter_item); in CheckIntraAnnotationsDirectoryItem()
2154 size_t aligned_offset = (PtrToOffset(ptr_) + alignment_mask) & ~alignment_mask; in CheckIntraSectionIterate()
2162 const uint8_t* start_ptr = ptr_; in CheckIntraSectionIterate()
2165 if (!CheckListSize(ptr_, 1, sizeof(dex::StringId), "string_ids")) { in CheckIntraSectionIterate()
2168 ptr_ += sizeof(dex::StringId); in CheckIntraSectionIterate()
2202 if (!CheckListSize(ptr_, 1, sizeof(dex::CallSiteIdItem), "call_site_ids")) { in CheckIntraSectionIterate()
2205 ptr_ += sizeof(dex::CallSiteIdItem); in CheckIntraSectionIterate()
2221 if (!CheckList(sizeof(dex::AnnotationSetRefItem), "annotation_set_ref_list", &ptr_)) { in CheckIntraSectionIterate()
2227 if (!CheckList(sizeof(uint32_t), "annotation_set_item", &ptr_)) { in CheckIntraSectionIterate()
2286 if (start_ptr == ptr_) { in CheckIntraSectionIterate()
2300 if (!PtrToOffset(ptr_, &aligned_offset)) { in CheckIntraSectionIterate()
2376 if (!PtrToOffset(ptr_, &next_offset) || next_offset > data_end) { in CheckIntraDataSection()
2391 ptr_ = dex_file_->Begin(); in CheckIntraSection()
2402 const uint8_t* initial_ptr = ptr_; in CheckIntraSection()
2408 size_t offset = PtrToOffset(ptr_); in CheckIntraSection()
2429 ptr_ += header_->header_size_; in CheckIntraSection()
2457 ptr_ += sizeof(uint32_t) + (map->size_ * sizeof(dex::MapItem)); in CheckIntraSection()
2490 if (ptr_ == initial_ptr) { in CheckIntraSection()
2564 const dex::HiddenapiClassData* item = reinterpret_cast<const dex::HiddenapiClassData*>(ptr_); in CheckInterHiddenapiClassData()
2570 const uint8_t* data_end = ptr_ + item->size_; in CheckInterHiddenapiClassData()
2571 ptr_ += header_size; in CheckInterHiddenapiClassData()
2600 uint32_t ptr_offset = ptr_ - reinterpret_cast<const uint8_t*>(item); in CheckInterHiddenapiClassData()
2615 if (!DecodeUnsignedLeb128Checked(&ptr_, data_end, &decoded_flags)) { in CheckInterHiddenapiClassData()
2617 ptr_, data_end, member_type, member.GetIndex()); in CheckInterHiddenapiClassData()
2637 if (ptr_ != data_end) { in CheckInterHiddenapiClassData()
2639 static_cast<uint32_t>(ptr_ - reinterpret_cast<const uint8_t*>(item)), in CheckInterHiddenapiClassData()
2648 const dex::StringId* item = reinterpret_cast<const dex::StringId*>(ptr_); in CheckInterStringIdItem()
2663 ptr_ += sizeof(dex::StringId); in CheckInterStringIdItem()
2668 const dex::TypeId* item = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckInterTypeIdItem()
2694 ptr_ += sizeof(dex::TypeId); in CheckInterTypeIdItem()
2699 const dex::ProtoId* item = reinterpret_cast<const dex::ProtoId*>(ptr_); in CheckInterProtoIdItem()
2775 ptr_ += sizeof(dex::ProtoId); in CheckInterProtoIdItem()
2780 const dex::FieldId* item = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckInterFieldIdItem()
2822 ptr_ += sizeof(dex::FieldId); in CheckInterFieldIdItem()
2827 const dex::MethodId* item = reinterpret_cast<const dex::MethodId*>(ptr_); in CheckInterMethodIdItem()
2868 ptr_ += sizeof(dex::MethodId); in CheckInterMethodIdItem()
2873 const dex::ClassDef* item = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckInterClassDefItem()
3034 ptr_ += sizeof(dex::ClassDef); in CheckInterClassDefItem()
3039 const dex::CallSiteIdItem* item = reinterpret_cast<const dex::CallSiteIdItem*>(ptr_); in CheckInterCallSiteIdItem()
3095 ptr_ += sizeof(dex::CallSiteIdItem); in CheckInterCallSiteIdItem()
3100 const dex::AnnotationSetRefList* list = reinterpret_cast<const dex::AnnotationSetRefList*>(ptr_); in CheckInterAnnotationSetRefList()
3112 ptr_ = reinterpret_cast<const uint8_t*>(item); in CheckInterAnnotationSetRefList()
3117 const dex::AnnotationSetItem* set = reinterpret_cast<const dex::AnnotationSetItem*>(ptr_); in CheckInterAnnotationSetItem()
3141 ptr_ = reinterpret_cast<const uint8_t*>(offsets); in CheckInterAnnotationSetItem()
3146 ClassAccessor accessor(*dex_file_, ptr_); in CheckInterClassDataItem()
3207 ptr_ = it.GetDataPointer(); in CheckInterClassDataItem()
3213 reinterpret_cast<const dex::AnnotationsDirectoryItem*>(ptr_); in CheckInterAnnotationsDirectoryItem()
3214 uint32_t defining_class = FindFirstAnnotationsDirectoryDefiner(ptr_); in CheckInterAnnotationsDirectoryItem()
3277 ptr_ = reinterpret_cast<const uint8_t*>(parameter_item); in CheckInterAnnotationsDirectoryItem()
3299 ptr_ = OffsetToPtr(new_offset); in CheckInterSectionIterate()
3300 const uint8_t* prev_ptr = ptr_; in CheckInterSectionIterate()
3406 offset = PtrToOffset(ptr_); in CheckInterSectionIterate()