From d1da88646a49938a90ffda6fdff4b3e84209dbf1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 08:16:34 +0000 Subject: [PATCH] [IndexError@globals.py:301] IndexError: list index out of range (#433) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Spartak Ehrlich --- decompiler/frontend/binaryninja/handlers/globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decompiler/frontend/binaryninja/handlers/globals.py b/decompiler/frontend/binaryninja/handlers/globals.py index 076610109..a3b71256b 100644 --- a/decompiler/frontend/binaryninja/handlers/globals.py +++ b/decompiler/frontend/binaryninja/handlers/globals.py @@ -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