-
Notifications
You must be signed in to change notification settings - Fork 352
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
initial commit for enhancing fuzz tests #2745
Conversation
bb35d0e
to
96a64d3
Compare
Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
96a64d3
to
a8f05b9
Compare
fuzz/fuzz_targets/FuzzServer.go
Outdated
initialized = true | ||
} | ||
|
||
conn, err := net.Dial("tcp", "localhost:9090") |
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.
you might want to loop and test if you can Dial before, because there is no guarantee that skipper.Run was already executed.
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.
I have added a retry mechanism as per your suggestion.
…erver Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
} | ||
|
||
conn, err := connect("localhost:9090") | ||
conn, err := connect(address) |
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.
you need to do something like:
var (
err error
conn *tcp.Conn // out of my head so maybe other type
)
for i:=0; i<10; i++ {
conn, err = connect(address)
if err != nil {
time.Sleep(100*time.Millisecond)
continue
}
break
}
Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
38e311e
to
fe32254
Compare
Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
…s using func init will affect other fuzz targets. Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
…rom oss-fuzz. Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
… option to compile without sanitizers. Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
👍 |
1 similar comment
👍 |
@szuecs I will create follow up PRs to add these fuzz targets to oss-fuzz and then another one to remove the old ones from |
…11278) adds more fuzz targets and also dictionaries to improve the coverage. continuation of zalando/skipper#2745 Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
Adds multiple fuzz targets with new directory structure and makefile.
libfuzzer and sanitizer options mirror oss-fuzz.