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
Null pointer dereference in Escargot::EnumerateObject::checkLastEnumerateKey #1336
Closed
Ye0nny closed 4 months ago
Escargot
Build Steps
Describe the bug Null pointer dereference
Test case
testcase
```javascript ( function func0 ( ) { for ( let var0 in this ) { class e { method ( ) { return 1 ; } } class t extends e { method (... e ) { } async method ( ) { } } if ( - " number " in this ) continue ; gc ( ) ; new t ( 1 ) ; } with ( 0 ) { try { return 32 ; } finally { " " ; } } } ) ( ) ; ```
Execution steps & Output
when executed in release mode
Output
Expected behavior
Credits: @Ye0nny, @EJueon