WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
43.98k stars 1.92k forks source link

[Bug] value assignment inside loop makes imhex crash #1640

Open Calcoph opened 5 months ago

Calcoph commented 5 months ago

Operating System

Windows

What's the issue you encountered?

The following code will make the code crash:

u32 value;

for (u8 i = 0, i < 1, i = i + 1) {
    value @ 0x0;
};

How can the issue be reproduced?

  1. Paste the code in the pattern editor
  2. press "run"

ImHex Version

1.33.0 a7033b6

ImHex Build Type

Installation type

MSI

Additional context?

No response

paxcut commented 5 months ago

I tested the issue on 1.33.0 release 3b37011 on windows and Imhex is not crashing. The latest nightly does crash so the bug was introduced between those two releases