[Bug] Undo/Redo after insert operation is adding extra bytes
Author: jiishiinCreated Sep 17, 2026Updated Sep 17, 2026
Labelsbug
Operating System
Windows
What's the issue you encountered?
On a provider with a non-zero base address, performing undo/redo alternately after inserting adds extra bytes until the provider size is greater than or equal to the base address.
I think the root cause is due to the commit 5ce75b3f58f0423a236506cae3c46e94f532c47a. Another issue (https://github.com/WerWolv/ImHex/issues/2822) is already reported due to the same commit.
How can the issue be reproduced?
- Create a new file
- Set base address as 0x7
- Insert 1 byte
- Perform undo/redo alternately.
https://github.com/user-attachments/assets/301984c8-7be7-45cf-a4e8-5afff4973806
ImHex Version
033a248047da9c2540cd44ebc31937dfd042dba7
ImHex Build Type
- Nightly or built from sources
Installation type
Portable
Additional context?
No response
Source: WerWolv/ImHex