mirror of https://github.com/pwndbg/pwndbg.git
ensure length padding works with py2 by enforcing unicode awareness (#416)
This works around the issue of python2 not being unicode aware and the config classes not properly returning instance of decoded raw strings. This leads to length operations being performed on bytes rather then logical characters. We check for python2 and enfore decoding if not a text_type. Fixes #412pull/422/head
parent
baa30ef2ba
commit
8ecaa67043
Loading…
Reference in new issue