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
37.44k stars 1.64k forks source link

[Bug] In the Pattern editor, std::print(") without a corresponding quote crashes ImHex #1725

Closed rxxsta closed 1 month ago

rxxsta commented 1 month ago

Operating System

Linux

What's the issue you encountered?

In the "Pattern editor" view, whenever std::io::print() contains only one quote (") or single quote (') and it does not have a corresponding quote, ImHex crashes. The crash does not seem to show up in the crash logs. And note, the std.io library does not need to be imported.

How can the issue be reproduced?

Open any file > Pattern editor > paste the following and run/evaluate:

std::io::print(");

ImHex Version

1.33.2

ImHex Build Type

Installation type

Archlinux AUR Package

Additional context?

No response

WerWolv commented 1 month ago

Thanks for the report, this should be fixed in the latest master