|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| FailCases | %!s(int64=3) %!d(string=hai) anos | |
| Sources | %!s(int64=2) %!d(string=hai) anos | |
| .gitignore | %!s(int64=4) %!d(string=hai) anos | |
| Package.swift | %!s(int64=3) %!d(string=hai) anos | |
| README.md | %!s(int64=4) %!d(string=hai) anos | |
This package contains binaries for running fuzz testing.
Building the binary requires additional arguments be passed to the Swift compiler:
swift build \
-Xswiftc -sanitize=fuzzer,address \
-Xswiftc -parse-as-library
Note also that on macOS the Swift toolchain shipped with Xcode does not
currently include fuzzing support and one must use a toolchain
from swift.org. Building on macOS therefore
requires the above command be run via xcrun:
xcrun --toolchain swift \
swift build \
-Xswiftc -sanitize=fuzzer,address \
-Xswiftc -parse-as-library
The FailCases directory contains fuzzing test input which previously caused
failures in gRPC.