Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jul 27, 2024
1 parent 3bddefa commit 62e3e25
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions blint/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,7 @@ def parse_pe_symbols(symbols):
"storage_class": str(symbol.storage_class).rsplit(".", maxsplit=1)[-1],
}
)
except (IndexError, AttributeError, ValueError) as e:
LOG.debug(f"Caught {type(e)}: {e} while parsing {symbol}.")
except RuntimeError:
except (IndexError, AttributeError, ValueError, RuntimeError):
pass
return symbols_list, exe_type

Expand Down Expand Up @@ -922,7 +920,7 @@ def determine_elf_flags(header):
A string representing the ELF flags.
"""
eflags_str = ""
if header.machine_type == lief.ELF.ARCH.ARM:
if header.machine_type == lief.ELF.ARCH.ARM and hasattr(header, "arm_flags_list"):
eflags_str = " - ".join(
[str(s).rsplit(".", maxsplit=1)[-1] for s in header.arm_flags_list]
)
Expand Down

0 comments on commit 62e3e25

Please sign in to comment.