* Disable `asm.bytes` by default * Fix tests by adding `e asm.bytes=true` (1/n) * Fix tests by adding (2/n) * Fix tests by adding `e asm.bytes=true` (3/n) * Fix tests by adding `asm.bytes=true` (4/n) * Fix test by adding `asm.bytes=true` (5/n) * Fix mostly all broken tests * Attemp to fix the rzpipe test * Attempt to fix the tests in `db/cmd/cmd_pipe` * Fix tests again * Fix cmd_pipe test * Add a test where `asm.bytes` is false Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
42 lines
677 B
Text
42 lines
677 B
Text
NAME=pi pdi 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
|
|
pdi 1
|
|
EOF
|
|
EXPECT=<<EOF
|
|
movabs rcx, 'ld.lldtn'
|
|
0x00000000 48b96e74646c6c2e646c movabs rcx, 'ld.lldtn'
|
|
EOF
|
|
RUN
|
|
|
|
NAME=uafbug pi pdi
|
|
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
|
|
pdi 1
|
|
ia > /dev/null
|
|
pdi 1
|
|
ia > /dev/null
|
|
pdi 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
|