-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
crypto/blake2b: only fuzz non-generic functions if enabled #28381
Conversation
Works on my local oss-fuzz build |
//go:build go1.7 && amd64 && !gccgo && !appengine | ||
// +build go1.7,amd64,!gccgo,!appengine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//go:build go1.7 && amd64 && gc && !purego
appengine is obsolete and superseded by purego, and gc is a more
precise tag for files that use gc-syntax assembly.
Source https://cs.opensource.google/go/x/crypto/+/be400aefbc4c83e9aab51e82b8d4b12760653b47 via https://cs.opensource.google/go/x/crypto/+/master:blake2b/;bpv=1
But IMO it's fine to leave it as is, so it uses the exact same logic as the other files in this package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct to me
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…ild-tag (ethereum#28381)" This reverts commit 5e9d8bd.
…ild-tag (ethereum#28381)" This reverts commit 5e9d8bd.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
…thereum#28381) This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
This PR tries to unbork master by only enabling the fuzzer if non-generic functions can be accessed (which is not the case on 32-bit platforms)