Skip to content

Commit

Permalink
Fix ambiguous string syntax for PEid parsing regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
hillu committed Dec 15, 2023
1 parent dcf780e commit 22c958d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, filename=None, data=None):
# RegExp to match a signature block
#
self.parse_sig = re.compile(
"\[(.*?)\]\s+?signature\s*=\s*(.*?)(\s+\?\?)*\s*ep_only\s*=\s*(\w+)(?:\s*section_start_only\s*=\s*(\w+)|)",
r"\[(.*?)\]\s+?signature\s*=\s*(.*?)(\s+\?\?)*\s*ep_only\s*=\s*(\w+)(?:\s*section_start_only\s*=\s*(\w+)|)",
re.S,
)

Expand Down

0 comments on commit 22c958d

Please sign in to comment.