Handle missing sections

pull/99/head
Zach Riggle 10 years ago
parent 3d6bd1d285
commit d816e103a6

@ -53,6 +53,10 @@ def get_section_bounds(section_name):
elffile = ELFFile(f)
section = elffile.get_section_by_name(section_name)
if not section:
return (None, None)
start = section['sh_addr']
size = section['sh_size']
return (start, start + size)

Loading…
Cancel
Save