Skip to content

[BUG] Stack overflow silently corrupts data and vice versa #255

@zetanumbers

Description

@zetanumbers

WARNING: this bug is relevant for every language!

To detect stack overflow rustc places stack before anything else (see explanation).
As you may know, stack grows backwards. Therefore to detect stack overflow it is basically placed at the top of the module's memory, and if stack pointer underflows and then is dereferenced, it throws an exception. Because of the memory map being at the top, it is not possible to detect stack overflow and it allows for stack overflow to silently corrupt some data on its way or vice versa.

See solutions: #255 (comment)

I want to fix this bug, but we all need to agree on a solution.

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