Commit ddb106c4 authored by Jason Hiser's avatar Jason Hiser 🚜

Merge branch '16-turbo-found-3-bugs-in-libehp-on-thu-apr-16-05-37-21-utc-2020' into 'master'

Resolve "Turbo found 3 bugs in libEHP on Thu Apr 16 05:37:21 UTC 2020"

Closes #16

See merge request !10
parents 2b640f5e 2d28cf57
Pipeline #7774 passed with stages
in 12 minutes and 55 seconds
......@@ -837,8 +837,6 @@ bool eh_program_insn_t<ptrsize>::parse_insn(
if(eh_frame_util_t<ptrsize>::read_uleb128(uleb, pos, data, max))
return true;
pos+=uleb;
if(pos>max)
return true;
if(pos>max)
return true;
break;
......@@ -1151,6 +1149,8 @@ bool cie_contents_t<ptrsize>::parse_cie(
return true;
auto end_pos=position+length;
if(end_pos > max)
return true;
auto cie_id=uint32_t(0);
if(this->read_type(cie_id, position, eh_frame_scoop_data, max, is_be))
......@@ -1745,9 +1745,9 @@ bool fde_contents_t<ptrsize>::parse_fde(
if(this->read_length(length, pos, eh_frame_scoop_data, max, is_be))
return true;
auto end_pos=pos+length;
//auto end_length_position=pos;
if(end_pos > max)
return true;
auto cie_id=uint32_t(0);
if(this->read_type(cie_id, pos, eh_frame_scoop_data, max, is_be))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment