forked from mvdan/gofumpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format: fix another panic found via fuzzing
A function can have non-nil but empty results, which would lead to a sign.Results.List[-1] panic.
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...testdata/fuzz/FuzzFormat/18c862f09f82fe57f536e7ab4b1bd63daecc2cba8189530bb0eb77b8cef6f798
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
go test fuzz v1 | ||
string("package A\nfunc A000000000(A000000000000,\nA00000000)(){\"\"}") | ||
int8(62) | ||
bool(true) |