mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
chg: [module extrator] add debug
This commit is contained in:
parent
bd7aa979bd
commit
529a24c191
1 changed files with 2 additions and 2 deletions
|
@ -107,8 +107,8 @@ def convert_byte_offset_to_string(b_content, offset):
|
||||||
try:
|
try:
|
||||||
string_chunk = byte_chunk.decode()
|
string_chunk = byte_chunk.decode()
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError as e:
|
||||||
logger.error(f'Yara offset coverter error, {e.reason}\n{b_content}\n{offset}')
|
logger.error(f'Yara offset converter error, {e.reason}\n{byte_chunk}\n{offset}')
|
||||||
string_chunk = b_content
|
string_chunk = byte_chunk
|
||||||
offset = len(string_chunk) - 1
|
offset = len(string_chunk) - 1
|
||||||
return offset
|
return offset
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue