bug unhandle VariableDeclaration if left is Array

Open
#418 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, swift
Domain
compilers

Research direction

Start with the VariableDeclaration handling for array destructuring and reproduce the supplied JavaScript, IL, and lifted-JavaScript example. Compare the emitted IL with the expected bindings and verify that the lifted output retains the destructured values and subsequent calls.

Written by the indexing model from the issue text.

Description

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);

Dominant language
Swift
Stars
2.3k
Forks
367
Avg merge
23h 53m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleprojectzero/fuzzilli

All issues in googleprojectzero/fuzzilli

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.