Skip to content

Fuzzing SwiftTerm

Miguel de Icaza edited this page Apr 25, 2020 · 2 revisions

Swift as provided by Apple does not come with support for Fuzzing, you need to install an open source toolchain from swift.org.

Download your package from Swift.org, and then rebuild the software like this:

bash$ SWIFT_EXEC=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swiftc  swift build -Xswiftc "-sanitize=fuzzer" -Xswiftc "-parse-as-library"
Clone this wiki locally