[GODRIVER-205] Add Fuzz testing for Encoder and Decoder Created: 24/Jan/18  Updated: 12/Oct/22  Resolved: 21/Apr/20

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Kristofer Brandow (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-1417 Add fuzzer tests to the BSON package(s) Closed
is related to GODRIVER-179 Add testing for bson.Encoder Closed
Epic Link: GODRIVER Performance and Test Coverage

 Description   

As we approach the beta, we should add fuzz testing to ensure that the encoders and decoders are fully tested. We can use https://github.com/dvyukov/go-fuzz for this.



 Comments   
Comment by Matt Dale [ 12/Oct/22 ]

Fuzz testing for the BSON marshaler and unmarshaler was implemented with GODRIVER-1417.

Comment by David Golden [ 03/Mar/20 ]

There is a fuzzing program and seed corpus in my jibby repository that you can copy/adapt.

cd testdata/fuzzing
go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
./fuzz-prep.sh
go-fuzz -bin jibbyfuzz.zip -func FuzzCrashDriver

Generated at Thu Feb 08 08:33:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.