Skip to content

Some upper bounds? #14

@BenWiederhake

Description

@BenWiederhake

Currently, there are no upper bounds in place, for example regarding the macro call stack:

macro function
begin
    function
endmacro
function

This segfaults because the stack grows out of bounds. Adding hardcoded upperbounds, like a depth of 2048 or whatever should suffice.

I'm aware that this is yet another piece of information that needs to be carried around all the time. Maybe putting the variables, macros, hex flag, and stack depth all in a single "context" struct would clean up the function signatures?

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