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

Analyzer fuzz crash: autocompleting malformed import URI #39004

Open
MichaelRFairhurst opened this issue Oct 20, 2019 · 0 comments
Open

Analyzer fuzz crash: autocompleting malformed import URI #39004

MichaelRFairhurst opened this issue Oct 20, 2019 · 0 comments
Labels
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

import "//[/^

Autocomplete at the ^.

Unhandled exception:
server error: {event: server.error, params: {isFatal: false, message: Failed to handle completion domain request: {id: 0, method: completion.getSuggestions, params: {file: /project/bin/test.dart, offset: 12}}, stackTrace: FormatException: Missing end `]` to match `[` in host (at character 3)
//[/
  ^

#0      _Uri._fail (dart:core/uri.dart:1623:5)
#1      _Uri._makeHost (dart:core/uri.dart:1973:9)
#2      new _Uri.notSimple (dart:core/uri.dart:1478:14)
#3      Uri.parse (dart:core/uri.dart:1022:17)
#4      _UriSuggestionBuilder._addFileSuggestions (package:analysis_server/src/services/completion/dart/uri_contributor.dart:155:34)
#5      _UriSuggestionBuilder.visitSimpleStringLiteral (package:analysis_server/src/services/completion/dart/uri_contributor.dart:110:11)
#6      _UriSuggestionBuilder.visitNamespaceDirective (package:analysis_server/src/services/completion/dart/uri_contributor.dart:82:17)
#7      _UriSuggestionBuilder.visitImportDirective (package:analysis_server/src/services/completion/dart/uri_contributor.dart:58:5)
#8      ImportDirectiveImpl.accept (package:analyzer/src/dart/ast/ast.dart:5902:49)
#9      UriContributor.computeSuggestions (package:analysis_server/src/services/completion/dart/uri_contributor.dart:40:35)
<asynchronous suspension>
#10     DartCompletionManager.computeSuggestions (package:analysis_server/src/services/completion/dart/completion_manager.dart:145:31)
@MichaelRFairhurst MichaelRFairhurst added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. fuzz-dust found with dust fuzz testing labels Oct 20, 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
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

2 participants