fix with indirect calls for gas injector

This commit is contained in:
NikVolf
2017-04-27 12:36:40 +03:00
parent b6bcd86ae1
commit 80687d470c
2 changed files with 13 additions and 5 deletions
+9 -1
View File
@@ -94,7 +94,15 @@ fn main() {
_ => {}
}
}
}
},
&mut elements::Section::Element(ref mut elements_section) => {
for ref mut segment in elements_section.entries_mut() {
// update all indirect call addresses initial values
for func_index in segment.members_mut() {
if *func_index >= gas_func { *func_index += 1}
}
}
},
_ => { }
}
}