You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Therefore, if the VersionInfo string contains a 4-byte utf-16 character - it will not be treated properly.
It will result in 2 different forcefully casted Unicode characters.
Question
Am I wrong or do not know something?
Or it should be fixed in pefile?
I understand that frequency meeting characters taking 4-byte size might not be big.
But at the end of the day, it is not handled.
The text was updated successfully, but these errors were encountered:
Given
utf-16-le
encodingget_string_u_at_rva
usedpefile/pefile.py
Lines 6476 to 6517 in 4b3b1e2
pefile/pefile.py
Lines 6510 to 6512 in 4b3b1e2
Problem
Therefore, if the VersionInfo string contains a 4-byte utf-16 character - it will not be treated properly.
It will result in 2 different forcefully casted Unicode characters.
Question
Am I wrong or do not know something?
Or it should be fixed in
pefile
?I understand that frequency meeting characters taking 4-byte size might not be big.
But at the end of the day, it is not handled.
The text was updated successfully, but these errors were encountered: