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)
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)