Skip to content

Commit

Permalink
[[email protected]:301] IndexError: list index out of range (#433)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Spartak Ehrlich <[email protected]>
  • Loading branch information
github-actions[bot] and NeoQuix authored Aug 22, 2024
1 parent 0afec52 commit d1da886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decompiler/frontend/binaryninja/handlers/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _get_string_at(view: BinaryView, addr: int, width: int) -> Optional[str]:
def addr_in_section(view: BinaryView, addr: int) -> bool:
"""Returns True if address is contained in a section, False otherwise"""
for _, section in view.sections.items():
if addr >= section.start and addr <= section.end:
if addr >= section.start and addr < section.end:
return True
return False

Expand Down

0 comments on commit d1da886

Please sign in to comment.