-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
"pdf" truncates the printout of disassembly if function has unreachable instructions #7473
Comments
Added binary -- ZIP password is "crackme" To reproduce, just do:
You can see that "realsz" differs from "size":
|
@radareorg @FrankLorenz just a regression test for different size, Thanks for the hint.
|
Wc is not portable use ~?
… On 13 May 2017, at 14:52, chairkov ***@***.***> wrote:
@radareorg @FrankLorenz just a regression test for different size, Thanks for the hint.
#!/bin/sh
for a in . .. ../.. ../../.. ; do [ -e $a/tests.sh ] && . $a/tests.sh ; done
NAME='ELF: IOLI - crackme0x05'
FILE=../../../bins/elf/ioli/crackme0x05
ARGS=
CMDS="aa ;afi @sym.check|head -5|tail -2| awk '{print $2}'| sort -u| wc -l"
EXPECT='1
'
run_test
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Use pdr if you want to really print fuctions. Pdf is conceptually wrong for non linear functions
… On 13 May 2017, at 14:52, chairkov ***@***.***> wrote:
@radareorg @FrankLorenz just a regression test for different size, Thanks for the hint.
#!/bin/sh
for a in . .. ../.. ../../.. ; do [ -e $a/tests.sh ] && . $a/tests.sh ; done
NAME='ELF: IOLI - crackme0x05'
FILE=../../../bins/elf/ioli/crackme0x05
ARGS=
CMDS="aa ;afi @sym.check|head -5|tail -2| awk '{print $2}'| sort -u| wc -l"
EXPECT='1
'
run_test
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I analyzed and patched the IOLI crackme's with radare2. When I patched an executable so it jumps over several lines of assembly, making it "unreachable" (dead code), I observed that r2 will no longer print out the whole disassembly of the function with
pdf @ sym.function
but omit the printout of the lower part.Because the number of printed lines corresponds to the "realsz" value on
afi
command, I assume the bug is to use the "realsz" value instead of the "size" value when calculating the range to print out.The text was updated successfully, but these errors were encountered: