Skip to content

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

@James-yaoshenglong

Description

@James-yaoshenglong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions