Skip to content

InternalError: stack overflow at asinh (native) #23

Description

@tangyixuan01

Description

The poc overflows the JavaScript stack.

Build environment

Ubuntu 18.04
gcc version 6.5.0 (GCC)
QuickJS version 2020-09-06

POC

function main() {
let v2 = 0;
var prGt = JSON;
while (v2 < 10) {
function v3(v4, v5, v6, v7, ...v8) {
const v11 = Math.asinh(Int32Array);
var MZCC = v11.constructor();
}
for (let v24 = 0; v24 < 10; v24++) {
const v25 = v3();
var sDYb = Date;
var HpBB = Symbol;
}
const v26 = v2 + 1;
var CfQP = v2.toFixed(v26);
var akHP = new Object();
var sWJC = escape('fw]/$pc]=#T]MM11'); var aZec = main(); var xwhW = JSON.parse('l<u0I9');
CfQP.length = v26;
var BeHt = DataView;
var zeij = JSON.stringify('CG&wE5qa41v)g?Wo3SCFw
');
}
}
main();

Debug Information

InternalError: stack overflow
at asinh (native)
at v3 (poc:6)
at main (poc:10)
at main (poc:18)
... ...
at (poc:25)

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