fix: [module extractor] fix invalid yara offset

This commit is contained in:
Terrtia 2023-08-08 11:27:57 +02:00
parent 4dc5527c1a
commit f05c7b6a93
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -110,7 +110,7 @@ def convert_byte_offset_to_string(b_content, offset):
return offset
except UnicodeDecodeError as e:
logger.error(f'Yara offset converter error, {str(e)}\n{offset}/{len(b_content)}')
return convert_byte_offset_to_string(b_content, offset)
return convert_byte_offset_to_string(b_content, offset - 1)
# TODO RETRO HUNTS