Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser fuzz crash: GenericFunctionTypeImpl is not a subtype of type TypeName #39029

Open
MichaelRFairhurst opened this issue Oct 21, 2019 · 0 comments
Labels
analyzer-ast-builder Issues with the AstBuilder class in the analyzer area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. fuzz-dust found with dust fuzz testing P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@MichaelRFairhurst
Copy link
Contributor

class T=Function<>(

Unhandled exception:
type 'GenericFunctionTypeImpl' is not a subtype of type 'TypeName'
#0      AstBuilder.endNamedMixinApplication (package:analyzer/src/fasta/ast_builder.dart:1800:14)
#1      Parser.parseNamedMixinApplication (package:front_end/src/fasta/parser/parser.dart:1780:14)
#2      Parser.parseClassOrNamedMixinApplication (package:front_end/src/fasta/parser/parser.dart:1761:14)
#3      Parser.parseTopLevelKeywordDeclaration (package:front_end/src/fasta/parser/parser.dart:572:14)
#4      Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:468:14)
#5      Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:350:15)
#6      ParserAdapter.parseCompilationUnit2 (package:analyzer/src/generated/parser_fasta.dart:159:32)
#7      ParserAdapter.parseCompilationUnit (package:analyzer/src/generated/parser_fasta.dart:154:12)
#8      _File._parse (package:analyzer/src/services/available_declarations.dart:1863:23)
#9      _File.refresh (package:analyzer/src/services/available_declarations.dart:1184:30)
#10     DeclarationsTracker._getFileByPath (package:analyzer/src/services/available_declarations.dart:691:14)
@MichaelRFairhurst MichaelRFairhurst added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) front-end-fasta front-end-fasta-recovery crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. fuzz-dust found with dust fuzz testing labels Oct 21, 2019
@srawlins srawlins added the area-front-end Use area-front-end for front end / CFE / kernel format related issues. label Oct 22, 2019
@stereotype441 stereotype441 added analyzer-ast-builder Issues with the AstBuilder class in the analyzer area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. and removed area-front-end Use area-front-end for front end / CFE / kernel format related issues. front-end-fasta front-end-fasta-recovery labels Oct 23, 2019
@srawlins srawlins added the P4 label Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-ast-builder Issues with the AstBuilder class in the analyzer area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. fuzz-dust found with dust fuzz testing P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants