Comments (13)
from go-fuzz.
from go-fuzz.
from go-fuzz.
i just pushed a few commits that should help with this. please make sure you've got the very latest version of go-fuzz and try again. if that doesn't work, please provide a public-code-only complete fuzz file that doesn't build. thanks.
from go-fuzz.
Hello,
Is this command to get the latest version of go-fuzz?
go install github.com/dvyukov/go-fuzz/go-fuzz@latest github.com/dvyukov/go-fuzz/go-fuzz-build@latest
Should I run this command inside the package which I wanna fuzz?
from go-fuzz.
go install github.com/dvyukov/go-fuzz/go-fuzz@latest github.com/dvyukov/go-fuzz/go-fuzz-build@latest
that should work
you should be able to run it anywhere
from go-fuzz.
I still get the same problem. "misplaced compiler directive"
from go-fuzz.
if that doesn't work, please provide a public-code-only complete fuzz file that doesn't build.
from go-fuzz.
package integration
import (
"crypto/x509"
)
func Fuzz(data []byte) int {
// Call the function you want to fuzz, e.g., x509.ParseCertificateRequest
_, err := x509.ParseCertificateRequest(data)
if err != nil {
return 0 // Tell go-fuzz this input didn't trigger a panic
}
return 1 // This input is interesting
}
I can successfully run the go-fuzz github's example, but cannot run the above code
from go-fuzz.
sigh. i've fixed this bug so many times in so many ways. i'll look again next time i have the heart to. if you want to tackle it yourself, take a look at 7356175 and b1ce7bc -- the fix is very likely to be similar, and in the same area of code.
from go-fuzz.
The fix your provided to me is already there in the latest version of go-fuzz. However, I still have the same error:
/usr/local/go/src/crypto/internal/bigmod/nat_asm.go:21: misplaced compiler directive
Should I change the go-fuzz version to 1.14?
from go-fuzz.
I'm getting the same bug with the following latest versions
go.sum:
github.com/dvyukov/go-fuzz v0.0.0-20240203152606-b1ce7bc07150 h1:8ww/RtfHmtJSLk7nK/TspKZDdgDvvXwp0JMIIhJF35s=
github.com/dvyukov/go-fuzz v0.0.0-20240203152606-b1ce7bc07150/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw=
go install github.com/dvyukov/go-fuzz/go-fuzz@latest github.com/dvyukov/go-fuzz/go-fuzz-build@latest
$ ~/go/bin/go-fuzz-build
failed to execute go build: exit status 1
crypto/internal/bigmod
/usr/local/go/src/crypto/internal/bigmod/nat_asm.go:21: misplaced compiler directive
from go-fuzz.
There is an workaround. You can avoid transpiling module in question.
$ ~/go/bin/go-fuzz-build -preserve crypto/internal/bigmod
from go-fuzz.
Related Issues (20)
- How to handle complex input data in fuzz tests? HOT 2
- Obscure build failures referencing non-existent code with error "undefined: fs in fs.FileMode" HOT 11
- `go:embed` breaks with go-fuzz-build HOT 4
- Debugging "restarts: 1/1" on windows/amd64 HOT 5
- Officially deprecate? HOT 15
- go-fuzz-build fails for cuelang.org with 'failed to parse int literal ... value out of range' for very large number HOT 9
- consider making go-fuzz a proper module itself HOT 2
- Missing textflag.h HOT 1
- go-fuzz-build fails with go1.18rc1 due to new stdlib embed of "p256_asm_table" HOT 2
- go 1.18 version corpus is not increase on Windows HOT 1
- go-fuzz-dep: sonar serialization contains faulty type assumption
- how could i stop the process except for ctrl + c HOT 2
- Problem discovered by go-fuzz cannot be reproduced HOT 1
- The Diff About cover.exe and sonar.exe HOT 1
- go module replacement rules HOT 1
- Provenance of corpus data? HOT 2
- abi_arm64.h: no such file or directory HOT 3
- Encountering Error When Using go-fuzz-build HOT 2
- Does go-fuzz support generating test coverage reports? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-fuzz.