googleprojectzero / googleprojectzero/fuzzilli
Assertion failed: Expected variable declaration as init part of a for-in loop, found Identifier
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.3k
- Forks
- 367
- Avg merge
- 23h 53m
- Merged PRs (30d)
- 1
Description
node parser.js ../../Protobuf/ast.proto code.js output.ast.proto
code.js:
for (x in y) {}
Tested on rev d386a838.
<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:17
throw "Assertion failed: " + msg;
^
Assertion failed: Expected variable declaration as init part of a for-in loop, found Identifier
Thrown at:
at assert (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:17:13)
at visitStatement (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:268:17)
at visitProgram (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:51:37)
at parse (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:561:12)
at <repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:570:15
at finish (<repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/protobufjs/src/root.js:105:9)
at process (<repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/protobufjs/src/root.js:143:13)
at <repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/protobufjs/src/root.js:195:17
at fetchReadFileCallback (<repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/@protobufjs/fetch/index.js:51:19)
at readFileAfterClose (node:internal/fs/read/context:68:3)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Sources/Fuzzilli/Compiler/Parser/parser.js, especially visitStatement around line 268, and reproduce the failure with code.js containing for (x in y) {}. Confirm that the parser accepts this for-in form without the assertion, using the command shown in the issue; no test file is named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100