Skip to content

Commit

Permalink
strlit decode
Browse files Browse the repository at this point in the history
  • Loading branch information
wallds committed Apr 15, 2022
1 parent 532ac23 commit 768137a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion novmpy/views/vtil_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ def instruction_tostring(basic_block: vtil.basic_block, it):
if imm > 0:
if is_strlit(get_flags(imm)):
content = get_strlit_contents(imm, -1, get_str_type(imm))
comment += str(content[:30])
content = content.decode('UTF-8', 'replace')
comment += repr(content[:30])
if len(content) > 30:
comment += '...'
else:
comment += ida_name.get_name(imm)
global bs_size
Expand Down

0 comments on commit 768137a

Please sign in to comment.