rizin/test/db/cmd/cmd_pv
Rot127 fc6886b8d7
Fix segfault of pv command. (#4883)
A non-numerical argument set repeat to 0 and
lead to an integer overflow further down.
This lead to OOB reading of memory.
2025-02-10 00:43:56 +08:00

19 lines
278 B
Text

NAME=pv
FILE=
CMDS=<<EOF
# Invalid input, check for segfault
pv iihasidbib
pv 0x9
EOF
EXPECT=<<EOF
0x0000000000000000
0x0000000000000000
0x0000000000000000
0x0000000000000000
0x0000000000000000
0x0000000000000000
0x0000000000000000
0x0000000000000000
0x0000000000000000
EOF
RUN