Lines Matching refs:header_
111 // header_ of the DexFileVerifier. str will contain the pointer to the method name on success
364 uint32_t expected_size = header_->file_size_;
372 if (adler_checksum != header_->checksum_) {
374 ErrorStringPrintf("Bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_);
378 "Ignoring bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_);
383 if (header_->endian_tag_ != DexFile::kDexEndianConstant) {
384 ErrorStringPrintf("Unexpected endian_tag: %x", header_->endian_tag_);
388 if (header_->header_size_ != sizeof(DexFile::Header)) {
389 ErrorStringPrintf("Bad header size: %ud", header_->header_size_);
395 CheckValidOffsetAndSize(header_->link_off_,
396 header_->link_size_,
399 CheckValidOffsetAndSize(header_->map_off_,
400 header_->map_off_,
403 CheckValidOffsetAndSize(header_->string_ids_off_,
404 header_->string_ids_size_,
407 CheckValidOffsetAndSize(header_->type_ids_off_,
408 header_->type_ids_size_,
411 CheckSizeLimit(header_->type_ids_size_, DexFile::kDexNoIndex16, "type-ids") &&
412 CheckValidOffsetAndSize(header_->proto_ids_off_,
413 header_->proto_ids_size_,
416 CheckSizeLimit(header_->proto_ids_size_, DexFile::kDexNoIndex16, "proto-ids") &&
417 CheckValidOffsetAndSize(header_->field_ids_off_,
418 header_->field_ids_size_,
421 CheckValidOffsetAndSize(header_->method_ids_off_,
422 header_->method_ids_size_,
425 CheckValidOffsetAndSize(header_->class_defs_off_,
426 header_->class_defs_size_,
429 CheckValidOffsetAndSize(header_->data_off_,
430 header_->data_size_,
439 header_->map_off_);
450 uint32_t data_items_left = header_->data_size_;
464 if (UNLIKELY(item->offset_ >= header_->file_size_)) {
466 item->offset_, header_->file_size_);
508 ((header_->string_ids_off_ != 0) || (header_->string_ids_size_ != 0)))) {
513 ((header_->type_ids_off_ != 0) || (header_->type_ids_size_ != 0)))) {
518 ((header_->proto_ids_off_ != 0) || (header_->proto_ids_size_ != 0)))) {
523 ((header_->field_ids_off_ != 0) || (header_->field_ids_size_ != 0)))) {
528 ((header_->method_ids_off_ != 0) || (header_->method_ids_size_ != 0)))) {
533 ((header_->class_defs_off_ != 0) || (header_->class_defs_size_ != 0)))) {
596 if (!CheckIndex(type_idx, header_->type_ids_size_, "handler type_idx")) {
625 if (!CheckIndex(idx, header_->field_ids_size_, "class_data_item field_idx")) {
631 (reinterpret_cast<const DexFile::FieldId*>(begin_ + header_->field_ids_off_) + idx)->
666 if (!CheckIndex(idx, header_->method_ids_size_, "class_data_item method_idx")) {
672 (reinterpret_cast<const DexFile::MethodId*>(begin_ + header_->method_ids_off_) + idx)->
691 if (!FindMethodName(idx, begin_, header_, &method_name, &error_msg)) {
784 if (!CheckIndex(idx, header_->string_ids_size_, "encoded_value string")) {
795 if (!CheckIndex(idx, header_->type_ids_size_, "encoded_value type")) {
807 if (!CheckIndex(idx, header_->field_ids_size_, "encoded_value field")) {
818 if (!CheckIndex(idx, header_->method_ids_size_, "encoded_value method")) {
859 if (!CheckIndex(idx, header_->proto_ids_size_, "method_type value")) {
897 if (!CheckIndex(anno_idx, header_->type_ids_size_, "encoded_annotation type_idx")) {
906 if (!CheckIndex(idx, header_->string_ids_size_, "annotation_element name_idx")) {
933 if (index >= (is_field ? header_->field_ids_size_ : header_->method_ids_size_)) {
940 (reinterpret_cast<const DexFile::FieldId*>(begin_ + header_->field_ids_off_) + index)->
944 (reinterpret_cast<const DexFile::MethodId*>(begin_ + header_->method_ids_off_) + index)->
949 if (class_type_index->index_ >= header_->type_ids_size_) {
956 reinterpret_cast<const DexFile::ClassDef*>(begin_ + header_->class_defs_off_);
957 for (size_t i = 0; i < header_->class_defs_size_; ++i) {
1410 if (!CheckIndex(parameter_name, header_->string_ids_size_, "debug_info_item parameter_name")) {
1439 if (!CheckIndex(name_idx, header_->string_ids_size_, "DBG_START_LOCAL name_idx")) {
1446 if (!CheckIndex(type_idx, header_->type_ids_size_, "DBG_START_LOCAL type_idx")) {
1470 if (!CheckIndex(name_idx, header_->string_ids_size_, "DBG_START_LOCAL_EXTENDED name_idx")) {
1477 if (!CheckIndex(type_idx, header_->type_ids_size_, "DBG_START_LOCAL_EXTENDED type_idx")) {
1484 if (!CheckIndex(sig_idx, header_->string_ids_size_, "DBG_START_LOCAL_EXTENDED sig_idx")) {
1494 if (!CheckIndex(name_idx, header_->string_ids_size_, "DBG_SET_FILE name_idx")) {
1781 expected_offset = header_->string_ids_off_;
1782 expected_size = header_->string_ids_size_;
1785 expected_offset = header_->type_ids_off_;
1786 expected_size = header_->type_ids_size_;
1789 expected_offset = header_->proto_ids_off_;
1790 expected_size = header_->proto_ids_size_;
1793 expected_offset = header_->field_ids_off_;
1794 expected_size = header_->field_ids_size_;
1797 expected_offset = header_->method_ids_off_;
1798 expected_size = header_->method_ids_size_;
1801 expected_offset = header_->class_defs_off_;
1802 expected_size = header_->class_defs_size_;
1825 size_t data_start = header_->data_off_;
1826 size_t data_end = data_start + header_->data_size_;
1848 const DexFile::MapList* map = reinterpret_cast<const DexFile::MapList*>(begin_ + header_->map_off_);
1880 ptr_ = begin_ + header_->header_size_;
1881 offset = header_->header_size_;
1899 if (UNLIKELY(section_offset != header_->map_off_)) {
1901 section_offset, header_->map_off_);
2280 if (header_->GetVersion() >= DexFile::kClassDefinitionOrderEnforcedVersion) {
2319 if (header_->GetVersion() >= DexFile::kClassDefinitionOrderEnforcedVersion) {
2782 const DexFile::MapList* map = reinterpret_cast<const DexFile::MapList*>(begin_ + header_->map_off_);
2960 GetFieldDescriptionOrError(begin_, header_, idx).c_str(),
2980 GetFieldDescriptionOrError(begin_, header_, idx).c_str(),
2992 GetFieldDescriptionOrError(begin_, header_, idx).c_str(),
2995 if (header_->GetVersion() >= DexFile::kDefaultMethodsVersion) {
3007 GetFieldDescriptionOrError(begin_, header_, idx).c_str(),
3010 if (header_->GetVersion() >= DexFile::kDefaultMethodsVersion) {
3025 GetFieldDescriptionOrError(begin_, header_, idx).c_str());
3044 GetMethodDescriptionOrError(begin_, header_, method_index).c_str(),
3066 GetMethodDescriptionOrError(begin_, header_, method_index).c_str(),
3081 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());
3092 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());
3093 if (header_->GetVersion() >= DexFile::kDefaultMethodsVersion) {
3110 GetMethodDescriptionOrError(begin_, header_, method_index).c_str(),
3128 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());
3129 if (header_->GetVersion() >= DexFile::kDefaultMethodsVersion) {
3146 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());
3153 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());
3154 if (header_->GetVersion() >= DexFile::kDefaultMethodsVersion) {
3169 GetMethodDescriptionOrError(begin_, header_, method_index).c_str(),
3175 LOG(WARNING) << "Method " << GetMethodDescriptionOrError(begin_, header_, method_index)
3187 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());
3188 if (header_->GetVersion() >= DexFile::kDefaultMethodsVersion) {
3207 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());
3218 GetMethodDescriptionOrError(begin_, header_, method_index).c_str(),
3260 GetMethodDescriptionOrError(begin_, header_, method_index).c_str());