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
40.06k stars 1.76k forks source link

[Bug] including std/core and std/mem at in the same file crashes imhex #1641

Open Calcoph opened 2 months ago

Calcoph commented 2 months ago

Operating System

Windows

What's the issue you encountered?

If I try to include both std/core.pat and std/mem.pat imhex crashes.

How can the issue be reproduced?

  1. type in the pattern editor:
#include <std/core.pat>
#include <std/mem.pat>
  1. Press "run".

ImHex Version

1.33.0 a7033b6

ImHex Build Type

Installation type

MSI

Additional context?

No response

glpnk commented 2 months ago

Use import statements now

import std.core;
import std.mem;

Also, segfault happens on Linux too

paxcut commented 2 months ago

I have known about problems including those two files for a while which is caused by all files using import internally, but it didn't crash imhex before.