Home
last modified time | relevance | path

Searched refs:readp (Results 1 – 15 of 15) sorted by relevance

/third_party/elfutils/libdw/
Ddwarf_getpubnames.c51 unsigned char *readp = startp; in get_offsets() local
52 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets()
54 while (readp + 14 < endp) in get_offsets()
74 Dwarf_Off len = read_4ubyte_unaligned_inc (dbg, readp); in get_offsets()
77 len = read_8ubyte_unaligned_inc (dbg, readp); in get_offsets()
88 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets()
98 uint16_t version = read_2ubyte_unaligned (dbg, readp); in get_offsets()
107 readp + 2, len_bytes, in get_offsets()
124 readp += len; in get_offsets()
189 unsigned char *readp = startp + offset; in dwarf_getpubnames() local
[all …]
Ddwarf_getaranges.c85 const unsigned char *readp = dbg->sectiondata[IDX_debug_aranges]->d_buf; in dwarf_getaranges() local
87 = readp + dbg->sectiondata[IDX_debug_aranges]->d_size; in dwarf_getaranges()
89 while (readp < readendp) in dwarf_getaranges()
91 const unsigned char *hdrstart = readp; in dwarf_getaranges()
110 if (unlikely (readp + 4 > readendp)) in dwarf_getaranges()
113 Dwarf_Word length = read_4ubyte_unaligned_inc (dbg, readp); in dwarf_getaranges()
117 if (unlikely (readp + 8 > readendp)) in dwarf_getaranges()
120 length = read_8ubyte_unaligned_inc (dbg, readp); in dwarf_getaranges()
127 if (unlikely (readp + 2 > readendp)) in dwarf_getaranges()
130 unsigned int version = read_2ubyte_unaligned_inc (dbg, readp); in dwarf_getaranges()
[all …]
Ddwarf_getmacros.c145 const unsigned char *readp, in get_table_for_offset() argument
149 const unsigned char *startp = readp; in get_table_for_offset()
152 if (readp + 3 > endp) in get_table_for_offset()
159 uint16_t version = read_2ubyte_unaligned_inc (dbg, readp); in get_table_for_offset()
166 uint8_t flags = *readp++; in get_table_for_offset()
172 line_offset = read_addr_unaligned_inc (is_64bit ? 8 : 4, dbg, readp); in get_table_for_offset()
173 if (readp > endp) in get_table_for_offset()
218 unsigned count = *readp++; in get_table_for_offset()
221 unsigned opcode = *readp++; in get_table_for_offset()
224 if (readp >= endp) in get_table_for_offset()
[all …]
DlibdwP.h682 __libdw_dieabbrev (Dwarf_Die *die, const unsigned char **readp) in __libdw_dieabbrev() argument
685 if (die->abbrev == NULL || readp != NULL) in __libdw_dieabbrev()
694 if (readp != NULL) in __libdw_dieabbrev()
695 *readp = addr; in __libdw_dieabbrev()
971 const unsigned char **readp,
1089 const unsigned char *readp; in str_offsets_base_off() local
1091 start = readp = (const unsigned char *) data->d_buf; in str_offsets_base_off()
1097 unit_length = read_4ubyte_unaligned_inc (dbg, readp); in str_offsets_base_off()
1100 if (unlikely (readendp - readp < 8)) in str_offsets_base_off()
1102 unit_length = read_8ubyte_unaligned_inc (dbg, readp); in str_offsets_base_off()
[all …]
Ddwarf_child.c46 const unsigned char *readp = NULL; in __libdw_find_attr() local
49 Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, &readp); in __libdw_find_attr()
76 get_uleb128 (attr_form, readp, endp); in __libdw_find_attr()
98 return (unsigned char *) readp; in __libdw_find_attr()
104 size_t len = __libdw_form_val_len (die->cu, attr_form, readp); in __libdw_find_attr()
107 readp = NULL; in __libdw_find_attr()
112 readp += len; in __libdw_find_attr()
129 return (unsigned char *) readp; in __libdw_find_attr()
Ddwarf_getlocation.c829 const unsigned char *readp = locs->d_buf + offset; in getlocations_addr() local
837 &readp, readendp, in getlocations_addr()
855 if (readendp - readp < 2) in getlocations_addr()
861 block.length = read_2ubyte_unaligned_inc (dbg, readp); in getlocations_addr()
865 if (readendp - readp < 1) in getlocations_addr()
867 get_uleb128 (block.length, readp, readendp); in getlocations_addr()
869 block.data = (unsigned char *) readp; in getlocations_addr()
870 if (readendp - readp < (ptrdiff_t) block.length) in getlocations_addr()
872 readp += block.length; in getlocations_addr()
885 return readp - (unsigned char *) locs->d_buf; in getlocations_addr()
Ddwarf_formudata.c122 unsigned char *readp = d->d_buf + offset; in __libdw_formptr() local
124 if (unlikely (readp >= endp)) in __libdw_formptr()
135 return readp; in __libdw_formptr()
Ddwarf_ranges.c502 const unsigned char *readp; in dwarf_ranges() local
536 readp = d->d_buf + offset; in dwarf_ranges()
544 &readp, readendp, in dwarf_ranges()
560 return readp - (unsigned char *) d->d_buf; in dwarf_ranges()
DChangeLog345 * dwarf_child.c (__libdw_find_attr): Initialize readp to NULL.
829 type of readp to Add readend argument. Check data size. Include base
837 (__libdw_read_begin_end_pair_inc): Change argument type of readp to
/third_party/elfutils/src/
Dreadelf.c5134 unsigned char **readp, unsigned char *endp, in skip_listptr_hole() argument
5146 || p->offset >= (Dwarf_Off) (endp - *readp + offset)) in skip_listptr_hole()
5148 *readp = endp; in skip_listptr_hole()
5156 *readp += p->offset - offset; in skip_listptr_hole()
5352 const unsigned char *readp = start; in print_debug_addr_section() local
5356 while (readp < readendp) in print_debug_addr_section()
5365 Dwarf_Off off = (Dwarf_Off) (readp in print_debug_addr_section()
5439 unit_length = (uint64_t) (next_unitp - readp); in print_debug_addr_section()
5455 unit_length = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_addr_section()
5458 if (unlikely (readp > readendp - 8)) in print_debug_addr_section()
[all …]
DChangeLog805 * readelf.c (print_debug_frame_section): Make sure readp is never
970 Do increase readp for DW_FORM_strx[1234].
986 * readelf.c (print_form_data): Don't reuse readp and readendp when
1029 (next_unitp - readp) in case we don't have a real header.
2283 (print_cfa_program): Likewise and add more readp bounds checks.
/third_party/openssl/crypto/bio/
Dbss_mem.c64 struct buf_mem_st *readp; /* read pointer */ member
102 *bb->readp = *bb->buf; in BIO_new_mem_buf()
119 if ((bb->readp = OPENSSL_zalloc(sizeof(*bb->readp))) == NULL) { in mem_init()
124 *bb->readp = *bb->buf; in mem_init()
152 OPENSSL_free(bb->readp); in mem_free()
182 if (bbm->readp->data != bbm->buf->data) { in mem_buf_sync()
183 memmove(bbm->buf->data, bbm->readp->data, bbm->readp->length); in mem_buf_sync()
184 bbm->buf->length = bbm->readp->length; in mem_buf_sync()
185 bbm->readp->data = bbm->buf->data; in mem_buf_sync()
195 BUF_MEM *bm = bbm->readp; in mem_read()
[all …]
/third_party/gstreamer/gstplugins_good/sys/osxvideo/
Dosxvideosink.m859 guint8 *readp, *writep;
876 readp = GST_VIDEO_FRAME_PLANE_DATA (&frame, 0);
881 memcpy (writep, readp, active_width);
883 readp += stride;
/third_party/ltp/testcases/kernel/fs/doio/
Ddoio.c1286 struct read_req *readp = &ioreq->r_data.read; in format_rw() local
1300 fd, (unsigned long)buffer, readp->r_nbytes); in format_rw()
1304 fd, readp->r_file, readp->r_oflags); in format_rw()
1307 readp->r_offset); in format_rw()
1332 fd, readap->r_file, readp->r_oflags); in format_rw()
/third_party/gstreamer/gstplugins_good/
DChangeLog474 guint8 *data, *readp, *writep;