Range check error if scrolling search results after deleting the data in the results

Bug reports concerning HxD.
Post Reply
SonoSooS
Posts: 1
Joined: 29 Jan 2024 09:37

Range check error if scrolling search results after deleting the data in the results

Post by SonoSooS »

Easy steps to reproduce:
- create dummy file (see steps below)
- open dummy file in HxD
- scroll to the end of the file
- from almost the bottom (make sure scrollbar scrolls up somewhat, let's say 0xFFBB0), select a few bytes (I've selected 16), copy it
- search for those select bytes, "Hex-values", search direction "All", "Search all"
- in the results window, scroll down to the bottom, and double-click the last search result
- right click on the starting byte of the selection, "Select block"
- in hex, start: 10000, end: 1000000, press ENTER
- press Backspace, press Space (to click the OK button via keyboard in the "do you want to change the filesize?" dialog)
- scroll the search results via touchpad
- "Range check error" spam
- "Runtime error 231 at 000000000040D5B2"
- HxD closes after clicking "OK" on the error dialog

Dummy file creation steps (creates a 1MB file with the same 64k of data repeated 16x times):
- cat /dev/urandom | dd bs=1 count=65536 of=asd.bin
- cat asd.bin asd.bin asd.bin asd.bin asd.bin asd.bin asd.bin asd.bin >asd2.bin
- cat asd2.bin asd2.bin >asd.bin
- rm asd2.bin

HxD version: 2.5.0.0, English

Edit: search direction is "All". Probably doesn't matter, but I'd give exact reproduction steps.
Screenshot of the error
Screenshot of the error
brave_mUeUyIOlO2.png (61.26 KiB) Viewed 68735 times
Post Reply