Skip to content

InternalError: stack overflow in calling function with unbalanced number of parameters #20

Description

@tangyixuan01

Description

Maybe there is some point in the code when increasing the stack TOP without doing the CHECKSTACK(n) which should have something to do with unbalanced number of parameters in function definition and function call.

Build environment

Ubuntu 18.04
gcc version 6.5.0 (GCC)
QuickJS version 2020-09-06
command:
qjs poc
qjsc -o out poc && ./out

POC

function f() {f(1,2)}
f(1)

Debug Information

InternalError: stack overflow
at f (poc)
at f (poc)
... ...
at (poc:2)

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