Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UTF-16LE strings not being detected properly #188

Merged
merged 1 commit into from
May 7, 2023

Conversation

GoGoOtaku
Copy link
Collaborator

Instead of having a write buffer for pestr I track string starting positions for utf8/ascii, utf16 (odd start byte), and utf16(even start byte). I also do an explicit byte swap since C uses big endian but PE uses little endian.
This might add more "fake" strings in the 1 to 2 character range but also stops these to interfere with other types of strings.

This fixes #142

@GoGoOtaku GoGoOtaku self-assigned this May 7, 2023
@GoGoOtaku GoGoOtaku merged commit c9177b3 into mentebinaria:master May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pestr adds/misses random characters
1 participant