Skip to content

Commit

Permalink
fix: bug in super rule generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Dec 29, 2020
1 parent 59467fc commit 98e6231
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yarGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ def extract_strings(fileData):
# WIDE
for ws in wide_strings:
# Decode UTF16 and prepend a marker (facilitates handling)
strings.append(("UTF16LE:%s" % ws.decode('utf-16')).encode('utf-8'))
wide_string = ("UTF16LE:%s" % ws.decode('utf-16')).encode('utf-8')
if wide_string not in strings:
strings.append(wide_string)
for string in strings:
# Escape strings
if len(string) > 0:
Expand Down

0 comments on commit 98e6231

Please sign in to comment.