ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] Remove file content will result in leftover duplicated content and empty bytes.

Open qux-bbb opened this issue 2 years ago • 1 comments

Operating System

Windows

What's the issue you encountered?

When I remove a file header content, duplicate content and "\x00" are generated at end of file.

How can the issue be reproduced?

prepare a file test.txt, content: "hello"
If you remove first byte, it will show:
remove_first_byte

If you remove 2 bytes, it will show:
remove_2_bytes

ImHex Version

1.29.0

ImHex Build Type

  • [ ] Nightly or built from sources

Installation type

MSI

Additional context?

My OS is Windows 11.

qux-bbb avatar May 24 '23 23:05 qux-bbb

Sorry for that I am not familiar ImHex source code, so I can not find a fix method.

qux-bbb avatar May 24 '23 23:05 qux-bbb

Yeah, @reserge fixed it. Thank you!

qux-bbb avatar Jun 24 '23 12:06 qux-bbb