Escargot is a lightweight JavaScript engine designed specifically for resource-constrained environments.
GNU Lesser General Public License v2.1
261
stars
43
forks
source link
Invalid pointer passed to free() related to ArrayObject #1335
Closed
Ye0nny closed 4 months ago
Escargot
Build Steps
Describe the bug Invalid pointer passed to free
Test case
testcase
```javascript let t = new Uint32Array ( 3 ) ; t. __proto__ = null ; Object. setPrototypeOf ( t, [ 0.1, 0.1, 0.1 ] ) ; t. length = t [ 0 ] = Infinity ; t. slice ( 2 ) ; t. includes ( 0.1, Infinity, { toString : ( ) => t. length = 0 } ) ; t. shift ( ) ; t. join ( ) ; t. sort ( ) ; ; ```
Execution steps & Output
Backtrace
when executed in release mode
Output
Expected behavior
Credits: @Ye0nny, @EJueon