ChakraCore
ChakraCore copied to clipboard
Assertion failure in Backend/ValueInfo.cpp
the following poc cause a assertion failure in "debug" build on ubuntu.
function main() {
do {
let v4 = 0;
const v6 = `
for (let v12 = 1; v12 < -1683432796; v12 = v12 || 1) {
}
`;
const v23 = eval(v6);
for (let v26 = 0; v26 != 9; v26++) {
switch (v4) {
case -3290630866:
break;
case v26:
break;
case -3290630866:
}
}
} while (0 !== 6);
}
main();