googleprojectzero / googleprojectzero/fuzzilli
Unknown property key type: StringLiteral
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:
x = { "": 0 }
Tested on rev d42d6fa0a.
<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:393
throw "Unknown property key type: " + field.key.type;
^
Unknown property key type: StringLiteral
Thrown at:
at visitExpression (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:393:33)
at visitExpression (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:375:27)
at visitStatement (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:119:28)
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)
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 with Sources/Fuzzilli/Compiler/Parser/parser.js at line 393 and reproduce the failure using the issue's parser.js command and code.js example. Check how the parser handles the object property key, then verify that the example no longer raises the unknown property key type error.
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
- 45/100