Lines Matching refs:ptr_
391 if (LIKELY(CheckListSize(ptr_, size, sizeof(byte), "encoded_value"))) { in ReadUnsignedLittleEndian()
393 result |= ((uint32_t) *(ptr_++)) << (i * 8); in ReadUnsignedLittleEndian()
405 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets()
406 int32_t size = DecodeSignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
423 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
428 uint32_t addr = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
436 uint32_t addr = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
510 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding()
511 ErrorStringPrintf("Non-zero padding %x before section start at %zx", *ptr_, offset); in CheckPadding()
514 ptr_++; in CheckPadding()
522 if (!CheckListSize(ptr_, 1, sizeof(byte), "encoded_value header")) { in CheckEncodedValue()
526 uint8_t header_byte = *(ptr_++); in CheckEncodedValue()
536 ptr_++; in CheckEncodedValue()
544 ptr_ += value_arg + 1; in CheckEncodedValue()
552 ptr_ += value_arg + 1; in CheckEncodedValue()
556 ptr_ += value_arg + 1; in CheckEncodedValue()
642 uint32_t size = DecodeUnsignedLeb128(&ptr_); in CheckEncodedArray()
654 uint32_t idx = DecodeUnsignedLeb128(&ptr_); in CheckEncodedAnnotation()
659 uint32_t size = DecodeUnsignedLeb128(&ptr_); in CheckEncodedAnnotation()
663 idx = DecodeUnsignedLeb128(&ptr_); in CheckEncodedAnnotation()
684 ClassDataItemIterator it(*dex_file_, ptr_); in CheckIntraClassDataItem()
711 ptr_ = it.EndDataPointer(); in CheckIntraClassDataItem()
716 const DexFile::CodeItem* code_item = reinterpret_cast<const DexFile::CodeItem*>(ptr_); in CheckIntraCodeItem()
749 ptr_ = reinterpret_cast<const byte*>(&insns[insns_size]); in CheckIntraCodeItem()
760 ptr_ = DexFile::GetCatchHandlerData(*code_item, 0); in CheckIntraCodeItem()
761 uint32_t handlers_size = DecodeUnsignedLeb128(&ptr_); in CheckIntraCodeItem()
814 uint32_t size = DecodeUnsignedLeb128(&ptr_); in CheckIntraStringDataItem()
819 if (UNLIKELY(ptr_ >= file_end)) { in CheckIntraStringDataItem()
824 uint8_t byte = *(ptr_++); in CheckIntraStringDataItem()
857 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
871 uint8_t byte2 = *(ptr_++); in CheckIntraStringDataItem()
876 uint8_t byte3 = *(ptr_++); in CheckIntraStringDataItem()
891 if (UNLIKELY(*(ptr_++) != '\0')) { in CheckIntraStringDataItem()
900 DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
901 uint32_t parameters_size = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
908 uint32_t parameter_name = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
918 uint8_t opcode = *(ptr_++); in CheckIntraDebugInfoItem()
924 DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
928 DecodeSignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
932 uint32_t reg_num = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
937 uint32_t name_idx = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
944 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
955 uint32_t reg_num = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
963 uint32_t reg_num = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
968 uint32_t name_idx = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
975 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
982 uint32_t sig_idx = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
992 uint32_t name_idx = DecodeUnsignedLeb128(&ptr_); in CheckIntraDebugInfoItem()
1006 if (!CheckListSize(ptr_, 1, sizeof(byte), "annotation visibility")) { in CheckIntraAnnotationItem()
1011 switch (*(ptr_++)) { in CheckIntraAnnotationItem()
1017 ErrorStringPrintf("Bad annotation visibility: %x", *ptr_); in CheckIntraAnnotationItem()
1030 reinterpret_cast<const DexFile::AnnotationsDirectoryItem*>(ptr_); in CheckIntraAnnotationsDirectoryItem()
1093 ptr_ = reinterpret_cast<const byte*>(parameter_item); in CheckIntraAnnotationsDirectoryItem()
1126 if (!CheckListSize(ptr_, 1, sizeof(DexFile::StringId), "string_ids")) { in CheckIntraSectionIterate()
1129 ptr_ += sizeof(DexFile::StringId); in CheckIntraSectionIterate()
1133 if (!CheckListSize(ptr_, 1, sizeof(DexFile::TypeId), "type_ids")) { in CheckIntraSectionIterate()
1136 ptr_ += sizeof(DexFile::TypeId); in CheckIntraSectionIterate()
1140 if (!CheckListSize(ptr_, 1, sizeof(DexFile::ProtoId), "proto_ids")) { in CheckIntraSectionIterate()
1143 ptr_ += sizeof(DexFile::ProtoId); in CheckIntraSectionIterate()
1147 if (!CheckListSize(ptr_, 1, sizeof(DexFile::FieldId), "field_ids")) { in CheckIntraSectionIterate()
1150 ptr_ += sizeof(DexFile::FieldId); in CheckIntraSectionIterate()
1154 if (!CheckListSize(ptr_, 1, sizeof(DexFile::MethodId), "method_ids")) { in CheckIntraSectionIterate()
1157 ptr_ += sizeof(DexFile::MethodId); in CheckIntraSectionIterate()
1161 if (!CheckListSize(ptr_, 1, sizeof(DexFile::ClassDef), "class_defs")) { in CheckIntraSectionIterate()
1164 ptr_ += sizeof(DexFile::ClassDef); in CheckIntraSectionIterate()
1168 if (!CheckList(sizeof(DexFile::TypeItem), "type_list", &ptr_)) { in CheckIntraSectionIterate()
1174 if (!CheckList(sizeof(DexFile::AnnotationSetRefItem), "annotation_set_ref_list", &ptr_)) { in CheckIntraSectionIterate()
1180 if (!CheckList(sizeof(uint32_t), "annotation_set_item", &ptr_)) { in CheckIntraSectionIterate()
1236 aligned_offset = ptr_ - begin_; in CheckIntraSectionIterate()
1310 size_t next_offset = ptr_ - begin_; in CheckIntraDataSection()
1325 ptr_ = begin_; in CheckIntraSection()
1352 ptr_ = begin_ + header_->header_size_; in CheckIntraSection()
1364 offset = ptr_ - begin_; in CheckIntraSection()
1376 ptr_ += sizeof(uint32_t) + (map->size_ * sizeof(DexFile::MapItem)); in CheckIntraSection()
1392 offset = ptr_ - begin_; in CheckIntraSection()
1468 const DexFile::StringId* item = reinterpret_cast<const DexFile::StringId*>(ptr_); in CheckInterStringIdItem()
1486 ptr_ += sizeof(DexFile::StringId); in CheckInterStringIdItem()
1491 const DexFile::TypeId* item = reinterpret_cast<const DexFile::TypeId*>(ptr_); in CheckInterTypeIdItem()
1511 ptr_ += sizeof(DexFile::TypeId); in CheckInterTypeIdItem()
1516 const DexFile::ProtoId* item = reinterpret_cast<const DexFile::ProtoId*>(ptr_); in CheckInterProtoIdItem()
1584 ptr_ += sizeof(DexFile::ProtoId); in CheckInterProtoIdItem()
1589 const DexFile::FieldId* item = reinterpret_cast<const DexFile::FieldId*>(ptr_); in CheckInterFieldIdItem()
1631 ptr_ += sizeof(DexFile::FieldId); in CheckInterFieldIdItem()
1636 const DexFile::MethodId* item = reinterpret_cast<const DexFile::MethodId*>(ptr_); in CheckInterMethodIdItem()
1678 ptr_ += sizeof(DexFile::MethodId); in CheckInterMethodIdItem()
1683 const DexFile::ClassDef* item = reinterpret_cast<const DexFile::ClassDef*>(ptr_); in CheckInterClassDefItem()
1789 ptr_ += sizeof(DexFile::ClassDef); in CheckInterClassDefItem()
1795 reinterpret_cast<const DexFile::AnnotationSetRefList*>(ptr_); in CheckInterAnnotationSetRefList()
1807 ptr_ = reinterpret_cast<const byte*>(item); in CheckInterAnnotationSetRefList()
1812 const DexFile::AnnotationSetItem* set = reinterpret_cast<const DexFile::AnnotationSetItem*>(ptr_); in CheckInterAnnotationSetItem()
1837 ptr_ = reinterpret_cast<const byte*>(offsets); in CheckInterAnnotationSetItem()
1842 ClassDataItemIterator it(*dex_file_, ptr_); in CheckInterClassDataItem()
1844 uint16_t defining_class = FindFirstClassDataDefiner(ptr_, &success); in CheckInterClassDataItem()
1868 ptr_ = it.EndDataPointer(); in CheckInterClassDataItem()
1874 reinterpret_cast<const DexFile::AnnotationsDirectoryItem*>(ptr_); in CheckInterAnnotationsDirectoryItem()
1876 uint16_t defining_class = FindFirstAnnotationsDirectoryDefiner(ptr_, &success); in CheckInterAnnotationsDirectoryItem()
1938 ptr_ = reinterpret_cast<const byte*>(parameter_item); in CheckInterAnnotationsDirectoryItem()
1958 ptr_ = begin_ + new_offset; in CheckInterSectionIterate()
1959 const byte* prev_ptr = ptr_; in CheckInterSectionIterate()
2029 offset = ptr_ - begin_; in CheckInterSectionIterate()