Skip to content

Commit

Permalink
fix for symex str formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosQuildu committed Feb 17, 2020
1 parent e8940a4 commit 286e4da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/deepstate/core/symex.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ def _stream_to_message(self, stream):
data = struct.pack('BBBBBBBB', *val_bytes)
val = struct.unpack(unpack_str, data[:struct.calcsize(unpack_str)])[0]

if type(val) == bytes:
val = val.decode('unicode_escape')

# Remove length specifiers that are not supported.
format_str = format_str.replace('l', '')
format_str = format_str.replace('h', '')
Expand Down

0 comments on commit 286e4da

Please sign in to comment.