Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(fuzz): read -> write bson #500

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Conversation

LeoDog896
Copy link
Contributor

@LeoDog896 LeoDog896 commented Oct 13, 2024

Runs to_writer in fuzz tests. Makes the fuzzer slower, but covers any write errors. Also adds a fuzz test for from_slice_utf8_lossy.

Note: I did not check for equivalence in from_reader and to_writer, as, even for accounting for length, there is still some loss in data ordering from the reader, as is to be expected.

@abr-egn
Copy link
Contributor

abr-egn commented Oct 14, 2024

Thank you, this is a very reasonable addition! I've tagged in Isabel for final approval.

Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thanks for your contribution!

@isabelatkinson isabelatkinson merged commit 31c92ad into mongodb:main Oct 15, 2024
11 checks passed
vitorguidi added a commit to google/oss-fuzz that referenced this pull request Oct 31, 2024
To complement mongodb/bson-rust#500

Co-authored-by: Vitor Guidi <vitorguidi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants