fuzzilli icon indicating copy to clipboard operation
fuzzilli copied to clipboard

bug unhandle VariableDeclaration if left is Array

Open turboliner opened this issue 2 years ago • 1 comments

js

const [a0, a1] = fun0(t);
fun1(a0); 
fun2(a1);

il v0 <- LoadNamedVariable 't' v1 <- LoadNamedVariable 'fun0' v2 <- CallFunction v1, [v0] v3 <- LoadNamedVariable 'a0' v4 <- LoadNamedVariable 'fun1' v5 <- CallFunction v4, [v3] v6 <- LoadNamedVariable 'a1' v7 <- LoadNamedVariable 'fun2' v8 <- CallFunction v7, [v6]

lifted js fun0(t); fun1(a0); fun2(a1);

turboliner avatar Feb 18 '24 01:02 turboliner

new example

    const { prop1 } = obj.func();
    prop1.length;

il v0 <- LoadNamedVariable 'obj' v1 <- CallMethod v0, 'func', [] v2 <- LoadNamedVariable 'prop1' v3 <- GetProperty v2, 'length'

lifted js obj.func(); prop1.length;

there are still can resolved, but if you can add new op code?

turboliner avatar Feb 21 '24 04:02 turboliner