Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pypackerdetect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def __add(i, msg):
# the format "/[N]" where N is the offset in the string table ; in this case, we compute
# the real section names and map them to the shortened ones to compare the relevant names
# with the database of known section names
if re.match(r"^\/\d+$", n) and _real_section_names(pe.path, logger=self.logger):
n = _real_section_names[i]
if re.match(r"^\/\d+$", n) and (_rn := _real_section_names(pe.path, logger=self.logger)):
n = _rn[i]
d['all'].append(n)
if ep >= s.VirtualAddress and ep <= (s.VirtualAddress + s.Misc_VirtualSize):
d['ep'].append(n)
Expand Down
Loading