chakra-core / chakra-core/ChakraCore
ASSERTION Failure: (m_pc + m_funcState.size == m_currentSection.end) in ChakraCore/lib/WasmReader/WasmBinaryReader.cpp, line 1319
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
### Commit hash
41ad58a9eebf8d52a83424c8fccfaacdb14105ec
### Build platform
Ubuntu 20.04
### Build steps
```
./build.sh --debug
```
### poc
```js
let foo = new Uint8Array([
0,
97,
115,
109,
1,
0,
0,
0,
1,
7,
1,
96,
2,
126,
127,
1,
127,
3,
2,
1,
0,
4,
4,
1,
112,
0,
4,
6,
'-0',
5,
127,
0
]);
let bar = new WebAssembly.Module(foo);
```
### assert log
```
ASSERTION 2388397: (ChakraCore/lib/WasmReader/WasmBinaryReader.cpp, line 1319) m_pc + m_funcState.size == m_currentSection.end
Failure: (m_pc + m_funcState.size == m_currentSection.end)
Illegal instruction
```
Contributor guide
Assessment
This issue has not been assessed yet.