chg: [module extrator] add debug

pull/604/head
Terrtia 2023-08-08 10:40:44 +02:00
parent bd7aa979bd
commit 529a24c191
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ def convert_byte_offset_to_string(b_content, offset):
try:
string_chunk = byte_chunk.decode()
except UnicodeDecodeError as e:
logger.error(f'Yara offset coverter error, {e.reason}\n{b_content}\n{offset}')
string_chunk = b_content
logger.error(f'Yara offset converter error, {e.reason}\n{byte_chunk}\n{offset}')
string_chunk = byte_chunk
offset = len(string_chunk) - 1
return offset