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
[WIP] Show unicode strings in disasm #10555
Conversation
a303cba
to
9bce8cf
Compare
@cyanpencil maybe wait until you do the character lengths, then merge - so far it looks very simple and good. |
maybe if we do this we can kill the |
dont reuse utf8 option for this, add another option pls, and make this option live inside RFlag, so you dont have to pass that option as argument all the time |
this new option can be named. asm.flags.real or |
Good idea about using |
@radare why 2.8.0? if we put it in 2.7.0 but disabled by default, it might be better for testing |
Ok, I'll change the utf8 option and use "string" instead of str.string. Also will leave it Work In Progress until the character legth pr is not merged (I'll push it today, almost finished) |
Done, now this should work without changing the r2r tests, since |
c22c6e1
to
df1920d
Compare
There are some testcases broken like this:
|
Strange, it shows 29 broken tests. |
Can you please rebase both r2r and this pull requests? |
uhm, not sure if red because of the pr or master being red. we sohuld greenify travis first |
@cyanpencil what happens if there are control chars in the string? Newline, delete chars, etc. |
@XVilka yes I made a mess in the last commit + with rebasing, am currently fixing @ret2libc I quickly tested on a binary that has a string like this |
42cbb5d
to
e79a85e
Compare
e79a85e
to
6a4f901
Compare
Ok green again. |
Merged. It will be easier to test now. |
Shows flag realnames instead of names in disasm if scr.utf8 is enabled.
String flag realnames are now unfiltered version of flag names.
To test this:
download this binary http://xvilka.me/chinese and then:
This is a [WIP] pr because it doesn't affect only unicode languages, but also english binaries, in fact if utf8 is enabled instead of
str.A_string_with_spaces
we will have
str.A string with spaces
However, all commands will still need normal flag names. Please test this, and tell me if it creates confusion.