Skip to content

Commit 98e6231

Browse files
committed
fix: bug in super rule generation
1 parent 59467fc commit 98e6231

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

yarGen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def extract_strings(fileData):
309309
# WIDE
310310
for ws in wide_strings:
311311
# Decode UTF16 and prepend a marker (facilitates handling)
312-
strings.append(("UTF16LE:%s" % ws.decode('utf-16')).encode('utf-8'))
312+
wide_string = ("UTF16LE:%s" % ws.decode('utf-16')).encode('utf-8')
313+
if wide_string not in strings:
314+
strings.append(wide_string)
313315
for string in strings:
314316
# Escape strings
315317
if len(string) > 0:

0 commit comments

Comments
 (0)