A fast, safe, and efficient CBOR serialization library for Swift on any platform.
swiftpackageindex.com/thecoolwinter/CBOR/1.1.1/documentation/cbor
atproto
swift
cbor
Fuzzing CBOR#
The Fuzzing target allows the library to be fuzzed using libfuzzer.
First build the package in release mode with the fuzzer and address checkers on:
swift build -c release --sanitize fuzzer
Then run it:
mkdir -p .fuzz
mkdir -p .fuzz/new-corpus
mkdir -p .fuzz/corpus
mkdir -p .fuzz/artifacts
./.build/release/Fuzzing .fuzz/new-corpus .fuzz/corpus -max_total_time=30 -artifact_prefix=.fuzz/artifacts -jobs=12 -workers=12 -max_len=1000000 -merge=1
The above command will spawn 12 threads for 30 seconds and will add to the existing fuzzing corpus over time.