Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Assertion 'arguments_type != SCANNER_ARGUMENTS_PRESENT && arguments_type != SCANNER_ARGUMENTS_PRESENT_NO_REG' in js-scanner-util (scanner_pop_literal_pool) #4847

Closed
hope-fly opened this issue Dec 7, 2021 · 1 comment · Fixed by #4849
Assignees
Labels
bug Undesired behaviour

Comments

@hope-fly
Copy link

hope-fly commented Dec 7, 2021

JerryScript revision

4592143

Build platform

Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64)

Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64)

Build steps
./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20
Test case
this.__defineSetter__("a", function(){});
function JSEtest (arguments = (function rec(n1, n2) {
    if (n1.length == n2) { m = "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCAAAA"; }
    rec(n1, n2 + 1);
})([,], 0)
        , m = eval("")
        )
{}
JSEtest(a);
Execution steps & Output
$ ./jerryscript/build/bin/jerry poc.js
ICE: Assertion 'arguments_type != SCANNER_ARGUMENTS_PRESENT && arguments_type != SCANNER_ARGUMENTS_PRESENT_NO_REG' failed at root/jerryscript/jerry-core/parser/js/js-scanner-util.c(scanner_pop_literal_pool):668.
Error: ERR_FAILED_INTERNAL_ASSERTION

Credits: Found by OWL337 team.

@rerobika rerobika added the bug Undesired behaviour label Dec 7, 2021
@rerobika rerobika self-assigned this Dec 7, 2021
rerobika pushed a commit to rerobika/jerryscript that referenced this issue Dec 7, 2021
rerobika pushed a commit to rerobika/jerryscript that referenced this issue Dec 7, 2021
… present

This patch fixes jerryscript-project#4847.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
rerobika pushed a commit to rerobika/jerryscript that referenced this issue Dec 7, 2021
… present

This patch fixes jerryscript-project#4847.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
dbatyai pushed a commit that referenced this issue Dec 7, 2021
… present (#4849)

This patch fixes #4847.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
@hope-fly
Copy link
Author

hope-fly commented Dec 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants