aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--yara.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yara.py b/yara.py
index f198473..34b3378 100644
--- a/yara.py
+++ b/yara.py
@@ -320,7 +320,7 @@ class YaraSignature(object):
index_map_data = index_map.compile()
n_blocks_data = index_elements.compile_index(len(self.blocks))
identifier_size_data = index_identifier.compile_index(len(identifier_data))
- modifiers = self.modifiers_origin | (index_elements.compile_modifier()[0] << 8) | (index_data.compile_modifier()[0] << 10) | ((1 if store_index_map_string_blocks else 0) << 14)
+ modifiers = self.modifiers_origin | (index_elements.compile_modifier()[0] << 8) | (index_data.compile_modifier()[0] << 10) | (index_identifier.compile_modifier()[0] << 12) | ((1 if store_index_map_string_blocks else 0) << 14) | ((1 if store_identifier_signature else 0) << 15)
fmt = self.__FORMAT.format(
size_identifier_size_data=(len(identifier_size_data) if store_identifier_signature else 0),
size_identifier_data=(len(identifier_data) if store_identifier_signature else 0),