Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libehp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
libehp
Commits
1a253b11
Commit
1a253b11
authored
1 year ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
Fix throwing of pointer instead of object.
parent
96b51183
No related branches found
No related tags found
No related merge requests found
Pipeline
#23316
failed
1 year ago
Stage: test
Stage: fuzz
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/arm_ehp.cpp
+3
-3
3 additions, 3 deletions
src/arm_ehp.cpp
with
3 additions
and
3 deletions
src/arm_ehp.cpp
+
3
−
3
View file @
1a253b11
...
@@ -145,7 +145,7 @@ vector<uint8_t> split_arm_eh_frame_impl_t<ptrsize>::parse_arm_eh_pgm(const uint6
...
@@ -145,7 +145,7 @@ vector<uint8_t> split_arm_eh_frame_impl_t<ptrsize>::parse_arm_eh_pgm(const uint6
break
;
break
;
}
}
default
:
default
:
throw
new
out_of_range
(
"Unknown personality index: "
+
to_string
(
personality_index
));
throw
out_of_range
(
"Unknown personality index: "
+
to_string
(
personality_index
));
}
}
}
}
...
@@ -333,7 +333,7 @@ arm_eh_program_t<ptrsize>::arm_eh_program_t(const vector<uint8_t>& unwind_pgm)
...
@@ -333,7 +333,7 @@ arm_eh_program_t<ptrsize>::arm_eh_program_t(const vector<uint8_t>& unwind_pgm)
// read uleb128 and sanity check.
// read uleb128 and sanity check.
const
auto
fail
=
eh_frame_util_t
<
ptrsize
>::
read_uleb128
(
res
,
final_pos
,
unwind_pgm_data
,
max
);
const
auto
fail
=
eh_frame_util_t
<
ptrsize
>::
read_uleb128
(
res
,
final_pos
,
unwind_pgm_data
,
max
);
if
(
fail
)
if
(
fail
)
throw
new
out_of_range
(
"Unable to read uleb128 in unwind_pgm"
);
throw
out_of_range
(
"Unable to read uleb128 in unwind_pgm"
);
// calc uleb length and record instructions..
// calc uleb length and record instructions..
const
auto
uleb_len
=
final_pos
-
initial_pos
;
const
auto
uleb_len
=
final_pos
-
initial_pos
;
...
@@ -345,7 +345,7 @@ arm_eh_program_t<ptrsize>::arm_eh_program_t(const vector<uint8_t>& unwind_pgm)
...
@@ -345,7 +345,7 @@ arm_eh_program_t<ptrsize>::arm_eh_program_t(const vector<uint8_t>& unwind_pgm)
unwind_idx
+=
insn_len
;
unwind_idx
+=
insn_len
;
}
}
else
else
throw
new
out_of_range
(
"Cannot determine arm32 unwind instruction length"
);
throw
out_of_range
(
"Cannot determine arm32 unwind instruction length"
);
}
}
}
}
...
...
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