chakra-core / chakra-core/ChakraCore

ASSERTION (VarIs<T>(obj)) failed in Js::VarTo

Open
#6,454 1 comment 0 reactions 0 assignees View on GitHub
Bug Debugger
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

###### ChakraCore version:
version 1.12.0.0-beta

###### Build Commond
./build.sh --debug

###### OS
Ubuntu 16.04.6 LTS (Linux 4.4.0-142-generic x86_64)

###### Test case
```
function foo() {
'use asm';
function f(d0) {
d0 = +d0;
return 1 % (~~d0 >>> 0) | 0;
}
return f;
}
foo();
WScript.Attach((this, {bar: function(){}}, new ArrayBuffer(1 << 20)).toLocaleString);
WScript.Detach(foo);
WScript.Attach(foo);
```

###### Output
```
ASSERTION 127791: (ChakraCore/lib/Runtime/./Types/RecyclableObject.h, line 520) VarIs(obj)
Failure: (VarIs(obj))
Illegal instruction
```

Credits: This vulnerability is detected by chong from OWL337.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.