Skip to content
Snippets Groups Projects
Commit 1a253b11 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

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
...@@ -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");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment