Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
becea6e0
Commit
becea6e0
authored
Dec 11, 2012
by
Ben Cheng
Committed by
Android (Google) Code Review
Dec 11, 2012
Browse files
Options
Downloads
Plain Diff
Merge "Fix ELF header parser bug." into jb-mr1.1-dev
parents
fd8e6504
c076030e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcorkscrew/arch-arm/ptrace-arm.c
+7
-4
7 additions, 4 deletions
libcorkscrew/arch-arm/ptrace-arm.c
with
7 additions
and
4 deletions
libcorkscrew/arch-arm/ptrace-arm.c
+
7
−
4
View file @
becea6e0
...
...
@@ -29,12 +29,15 @@
static
void
load_exidx_header
(
pid_t
pid
,
map_info_t
*
mi
,
uintptr_t
*
out_exidx_start
,
size_t
*
out_exidx_size
)
{
uint32_t
elf_phoff
;
uint32_t
elf_phentsize_phnum
;
uint32_t
elf_phentsize_ehsize
;
uint32_t
elf_shentsize_phnum
;
if
(
try_get_word_ptrace
(
pid
,
mi
->
start
+
offsetof
(
Elf32_Ehdr
,
e_phoff
),
&
elf_phoff
)
&&
try_get_word_ptrace
(
pid
,
mi
->
start
+
offsetof
(
Elf32_Ehdr
,
e_ehsize
),
&
elf_phentsize_ehsize
)
&&
try_get_word_ptrace
(
pid
,
mi
->
start
+
offsetof
(
Elf32_Ehdr
,
e_phnum
),
&
elf_
p
hentsize_phnum
))
{
uint32_t
elf_phentsize
=
elf_phentsize_
phnum
>>
16
;
uint32_t
elf_phnum
=
elf_
p
hentsize_phnum
&
0xffff
;
&
elf_
s
hentsize_phnum
))
{
uint32_t
elf_phentsize
=
elf_phentsize_
ehsize
>>
16
;
uint32_t
elf_phnum
=
elf_
s
hentsize_phnum
&
0xffff
;
for
(
uint32_t
i
=
0
;
i
<
elf_phnum
;
i
++
)
{
uintptr_t
elf_phdr
=
mi
->
start
+
elf_phoff
+
i
*
elf_phentsize
;
uint32_t
elf_phdr_type
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment