-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
testing: Fuzz corpus header should support CRLF line endings #52268
Comments
I think this is the wrong place to fix things, |
Also, if CRLF will not be supported, the corpus file format documentation should make that explicit. |
CC @golang/fuzzing. |
My two cents: Yes, letting git mess with It's also in line with the rest of the Go toolchain, which supports CRLF line endings well. |
Change https://go.dev/cl/402074 mentions this issue: |
+1 I missed this issue because I searched for issues with the "fuzz" tag, but I also ran into problems when testing things on multiple OS's on GHA. More details here. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Checkout a Go project with a fuzzing corpus and begin fuzzing:
What did you expect to see?
I expected the fuzzer to startup successfully and begin fuzzing.
What did you see instead?
Root Cause
The issue is that the corpus file format must use LF line endings. Git was "helpfully" converting everything to CRLF by default on Windows. In order to use the fuzzer, the Git config must contain
core.autocrlf=false
andcore.eol=lf
.The text was updated successfully, but these errors were encountered: