Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Assertion 'ecma_find_named_property (func_obj_p, ecma_get_magic_string (LIT_MAGIC_STRING_NAME)) == NULL' failed at /jerryscript/jerry-core/vm/vm.c(vm_loop):2173. #5070

Open
EJueon opened this issue Apr 19, 2023 · 0 comments
Labels
bug Undesired behaviour fuzzing Related to fuzz testing of the engine

Comments

@EJueon
Copy link

EJueon commented Apr 19, 2023

JerryScript revision

Commit: 05dbbd1
Version: v3.0.0

Build platform

Ubuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64)

Build steps
python ./tools/build.py --clean --debug --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-fsanitize=address --compile-flag=-g --strip=off --lto=off --error-messages=on --system-allocator=on --logging=on --line-info=on --stack-limit=20
Test case
testcase

class s { 0 = class { } ; [ 1 ] = class { constructor ( ) { } static name ( s ) { } } ; } new s ( ) ;  gc ( ) ; new s ( ) ( e ) ; let t = 32 ;

// poc.js
class s { [ 1 ] = class { constructor ( ) { } static name ( s ) { } } ; } 
new s ( ) ; 
Execution steps & Output
$ ./jerryscript/build/bin/jerry poc.js
ICE: Assertion 'ecma_find_named_property (func_obj_p, ecma_get_magic_string (LIT_MAGIC_STRING_NAME)) == NULL' failed at /jerryscript/jerry-core/vm/vm.c(vm_loop):2173.
Error: JERRY_FATAL_FAILED_ASSERTION
Aborted

credits: @EJueon, @Ye0nny of the seclab-yonsei.

@LaszloLango LaszloLango added bug Undesired behaviour fuzzing Related to fuzz testing of the engine labels Nov 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Undesired behaviour fuzzing Related to fuzz testing of the engine
Projects
None yet
Development

No branches or pull requests

2 participants