mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
fix: [module extractor] fix invalid yara offset
This commit is contained in:
parent
4dc5527c1a
commit
f05c7b6a93
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ def convert_byte_offset_to_string(b_content, offset):
|
||||||
return offset
|
return offset
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError as e:
|
||||||
logger.error(f'Yara offset converter error, {str(e)}\n{offset}/{len(b_content)}')
|
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
|
# TODO RETRO HUNTS
|
||||||
|
|
Loading…
Reference in a new issue