George Barnett 01bd56e270 Merge pull request from GHSA-2jx2-qcm4-rf9h 4 år sedan
..
FailCases 01bd56e270 Merge pull request from GHSA-2jx2-qcm4-rf9h 4 år sedan
Sources 4ea3cd016c Provide 'default' static functions for making client/server configuration (#1198) 4 år sedan
.gitignore f358115ed0 In-source fuzzing support (#1177) 4 år sedan
Package.swift f358115ed0 In-source fuzzing support (#1177) 4 år sedan
README.md 972c701444 Add fuzzing failure cases (#1190) 4 år sedan

README.md

gRPC Swift: Fuzz Testing

This package contains binaries for running fuzz testing.

Building

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

Failures

The FailCases directory contains fuzzing test input which previously caused failures in gRPC.