Open pashashocky opened 8 years ago
get_string_at_rva
actually returns a bytes
type, which is an array of int. To use it as a string, you will have to call .decode('ASCII')
on the result. (The PE spec mandates ASCII encoding for most if not all strings, the exception being the "Unicode" strings in the version info, which are UTF-16. Side note: pefile throws away any non-ASCII characters in these particular strings.)
@erocarrera Is it deliberate that get_string_at_rva
returns a bytes
type and not str
?
Hello,
The function get_string_at_rva seems to return an int in some situations, when it should be a string.
This became an issue in version 2016.3.28, 1.2.9 worked fine