rizin icon indicating copy to clipboard operation
rizin copied to clipboard

rizin 0.8.0 Segfault p==v

Open Semnodime opened this issue 2 months ago • 0 comments

Work environment

Questions Answers
OS/arch/bits (mandatory) Linux Mint 21.1 x64
rizin -v full output, not truncated (mandatory) rizin 0.8.0 @ linux-x86-64 commit: 73d85d270a81c8c42c1b8e601d167ce2ad93157f

Expected behavior

Working command

Actual behavior

Segfault

Steps to reproduce the behavior

truncate -s 8000M zeros; rizin -c 'p==v; q!!' zeros

Additional Info

The segfault appears to happen reproducible at a given boundary of file size. The file size appears to be dependent however on the environment that rizin is run in. I searched for the file size using weighted binary search and found the following sizes to be the smallest file size that still results in a segfault:

Byte MiB KiB when running in
849314816 ~ 809.9... 829409 terminal
846644224 ~ 807.4... 826801 ide
847307776 ~ 808.0... 827449 ide terminal

Semnodime avatar Apr 12 '24 21:04 Semnodime