Yams icon indicating copy to clipboard operation
Yams copied to clipboard

Add yams-fuzzer target & run on CI

Open jpsim opened this issue 4 years ago • 1 comments

Swift can integrate with libFuzzer and seems to work quite well.

To seed the fuzzer with a useful corpus of input data, I'm using the yaml from yaml-test-suite.

References:

  • https://github.com/apple/swift/blob/main/docs/libFuzzerIntegration.md
  • https://llvm.org/docs/LibFuzzer.html#options

jpsim avatar Nov 18 '21 16:11 jpsim

Codecov Report

Merging #334 (5b55ed9) into main (a207bf7) will decrease coverage by 0.48%. The diff coverage is 60.86%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #334      +/-   ##
==========================================
- Coverage   87.72%   87.24%   -0.49%     
==========================================
  Files          15       15              
  Lines        1418     1435      +17     
==========================================
+ Hits         1244     1252       +8     
- Misses        174      183       +9     
Impacted Files Coverage Δ
Sources/Yams/YamlError.swift 71.42% <60.00%> (-1.18%) :arrow_down:
Sources/Yams/Constructor.swift 93.30% <61.11%> (-3.13%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a207bf7...5b55ed9. Read the comment docs.

codecov-commenter avatar Nov 18 '21 18:11 codecov-commenter