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

Avoiding a crash on empty input filename - Issue #3549 #3899

Merged
merged 34 commits into from
May 22, 2023

Conversation

davidcok
Copy link
Collaborator

Fixes #3549

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@davidcok davidcok enabled auto-merge (squash) April 22, 2023 02:54
@@ -273,6 +273,10 @@ public enum CommandLineArgumentsResult {

bool isDafnyFile = false;
try {
if (file == "") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code isn't triggered in the tests. Can it be hit? Consider either adding a test or removing it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revmoed it -- the error is caught earlier by the Boogie commandline parser.

@davidcok davidcok merged commit 7188192 into dafny-lang:master May 22, 2023
@davidcok davidcok deleted the cok-3549 branch May 22, 2023 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dafny crashes with empty command-line argument
2 participants