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
at main 21 lines 602 B view raw view rendered
1# Fuzzing CBOR 2 3The `Fuzzing` target allows the library to be fuzzed using libfuzzer. 4 5First build the package in release mode with the fuzzer and address checkers on: 6 7```bash 8swift build -c release --sanitize fuzzer 9``` 10 11Then run it: 12 13```swift 14mkdir -p .fuzz 15mkdir -p .fuzz/new-corpus 16mkdir -p .fuzz/corpus 17mkdir -p .fuzz/artifacts 18./.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 19``` 20 21The above command will spawn 12 threads for 30 seconds and will add to the existing fuzzing corpus over time.