Skip to content

[Freeze] Make PL freeze/crash with a bad formatted print #189

@Naheulf

Description

@Naheulf

Description of the Issue

It seem to hang because it try to use a return value from a function without return value.

Steps to Reproduce the Issue

Execute this pattern:

import std.io;

fn Foo(){};

std::print("{}", Foo());

Expected Behavior

Should return an error. And should do it quickly (without waiting for a watchdog).

Actual Behavior

Hang/Freeze. Make ImHex crash and make the Discord bot stuck in thinking state.

Debug Information

Found in the latest ImHex release (1.37.4) but is also present in the latest nightly (1.38.0.WIP WerWolv/ImHex@56d1e26)

This Might be related to WerWolv/ImHex#2368 as it does have similar behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions