Skip to content

Commit

Permalink
HOTFIX: Bump deps + ELF strings check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Feb 24, 2024
1 parent 887a12c commit e8eacc2
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 152 deletions.
9 changes: 4 additions & 5 deletions mobsf/StaticAnalyzer/views/common/binary/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def fortify(self):
return fortified_funcs

def strings(self):
elf_strings = None
normalized = set()
try:
elf_strings = self.elf.strings
except Exception:
Expand All @@ -304,10 +304,9 @@ def strings(self):
elf_strings = strings_on_binary(self.elf_path)
for i in elf_strings:
if isinstance(i, bytes):
tmp = i.decode('utf-8', errors='ignore')
elf_strings.remove(i)
elf_strings.append(tmp)
return elf_strings
continue
normalized.add(i)
return list(normalized)

def get_symbols(self):
symbols = []
Expand Down
Loading

0 comments on commit e8eacc2

Please sign in to comment.