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

[Bug]: Assertion Failure this->pCurrentFunction->LengthInChars() == pnodeFnc->LengthInCodepoints() in /lib/Runtime/ByteCode/ByteCodeGenerator.cpp, line 1333 #7010

Open
James-yaoshenglong opened this issue Jan 6, 2025 · 1 comment

Comments

@James-yaoshenglong
Copy link

ChakraCore Version

13358c6

Steps to reproduce

Build

./build.sh --static --debug --sanitize=address --no-jit

Run

ch ./poc.js -200000

Proof of concept

String `                                          hello ` ; y = { d : ( a = void eval `
                                                                                                                  $$$$ ` . map ( function ( arg1 , ... [ c = s ] ) { return this . constructor ( ... [ bar ] = [ [ { c } = { 0b1_000_000 : 2 } ] = [ item2 = 0 ] ] ) . constructor ( ... [ bar ] = [ undefined = 42 ] ) . join ( function stuff ( a , ) { import ( async => y ) . finally ( eval => b ?? import ( async => a && ( a && new b ( c ) && d == b ) / 2 << c ) ) ; } ) + 4 + 0x1ABCDEFabcdef + 0x1ABCDEFabcdef ; } ) . map ( eval ) , a = void import ( { d : ( a = void import ( '
                                                                大阪府 ' ) , a = void stuff ( { 3.14e+1 : 0o1_1 } ) ) } ) ) } ;

Exception or Error

ASSERTION: (/home/user/repo/ChakraCore/lib/Runtime/ByteCode/ByteCodeGenerator.cpp, line 1333) this->pCurrentFunction->LengthInChars() == pnodeFnc->LengthInCodepoints()
Failure: (this->pCurrentFunction->LengthInChars() == pnodeFnc->LengthInCodepoints())
Illegal instruction

Additional Context

No response

@ppenzin
Copy link
Member

ppenzin commented Jan 25, 2025

What is the expected behavior, graceful error or run to completion?

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

No branches or pull requests

2 participants