mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-17 12:48:41 +00:00
![pancake](/assets/img/avatar_default.png)
* Add test with esil emulation instruction tracing * Fix UAF in debug traces, vector fields are not constant
33 lines
878 B
Plaintext
33 lines
878 B
Plaintext
NAME=asm.trace
|
|
FILE=bins/mach0/main-loop
|
|
CMDS=<<EOF
|
|
af
|
|
e asm.flags.inline=true
|
|
e asm.comments=false
|
|
e asm.trace=1
|
|
e dbg.trace=1
|
|
aeim
|
|
e asm.bytes=0
|
|
s main
|
|
30ds
|
|
pdf
|
|
EOF
|
|
EXPECT=<<EOF
|
|
;-- section.0.__TEXT.__text, entry0, sym._main, sym.func.100003f84:
|
|
/ 36: int main (int argc);
|
|
| ; arg int argc @ x0
|
|
| ; var int64_t var_8h @ sp+0x8
|
|
| 0x100003f84 01:0001 sub sp, sp, 0x10
|
|
| 0x100003f88 01:0002 str wzr, [sp, 0xc]
|
|
| 0x100003f8c 01:0003 mov w8, 3
|
|
| 0x100003f90 01:0004 str w8, [sp, 8]
|
|
| ,=< 0x100003f94 01:0005 b 0x100003f98
|
|
| .`-> 0x100003f98 07:001e ldr w8, [var_8h]
|
|
| : ;-- pc:
|
|
| : 0x100003f9c 06:001b add w8, w8, 1
|
|
| : 0x100003fa0 06:001c str w8, [sp, 8]
|
|
\ `==< 0x100003fa4 06:001d b 0x100003f98
|
|
EOF
|
|
RUN
|
|
|