* Split `rz_core_print_disasm_json` as: `rz_core_print_disasm_json` and `rz_core_disasm` * Use `rz_str_enc_string_as_type` in `ds_init` * Refactor `rz_core_print_disasm` and `rz_core_handle_backwards_disasm` * Add `rz_core_asm_bb_middle` * Move global `disasm_texts` to `RzDisasmState` * Rewrite `core_analysis_bytes_standard` with `rz_core_analysis_bytes` * Add `test_rz_core_print_disasm` and `test_rz_core_analysis_bytes` * Rewrite `rz_core_print_disasm` with `RzCmdStateOutput` * `pdi` -> `pdq` in tests * `pdi` -> `pDq` in tests * `pid` -> `pdq` in tests * `pId` -> `pDq` in tests * `pij` -> `pdj` in tests * `pIj` -> `pDj` in tests * `pdeqq` -> `pdeQ` in tests * Remove `pDJ` from `test/db/json/`
42 lines
677 B
Text
42 lines
677 B
Text
NAME=pi pdq with ahi2
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
e asm.bytes=true
|
|
e asm.arch=x86
|
|
e asm.bits=64
|
|
wx 48b96e74646c6c2e646c
|
|
ahi s
|
|
pi 1
|
|
pdq 1
|
|
EOF
|
|
EXPECT=<<EOF
|
|
movabs rcx, 'ld.lldtn'
|
|
0x00000000 48b96e74646c6c2e646c movabs rcx, 'ld.lldtn'
|
|
EOF
|
|
RUN
|
|
|
|
NAME=uafbug pi pdq
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
e asm.bytes=true
|
|
e asm.arch=x86
|
|
e asm.bits=64
|
|
wx 48b96e74646c6c2e646c
|
|
ahi i
|
|
pi 1
|
|
ahi s
|
|
pi 1
|
|
pdq 1
|
|
ia > /dev/null
|
|
pdq 1
|
|
ia > /dev/null
|
|
pdq 1
|
|
EOF
|
|
EXPECT=<<EOF
|
|
movabs rcx, 110.116.100.108
|
|
movabs rcx, 'ld.lldtn'
|
|
0x00000000 48b96e74646c6c2e646c movabs rcx, 'ld.lldtn'
|
|
0x00000000 48b96e74646c6c2e646c movabs rcx, 'ld.lldtn'
|
|
0x00000000 48b96e74646c6c2e646c movabs rcx, 'ld.lldtn'
|
|
EOF
|
|
RUN
|