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

Fix read_document_bytes unchecked conversion bug #1274

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

pmeredit
Copy link
Contributor

Ok, this version only fixes the bug. I pushed the fuzzer as a branch to origin called header_fuzz

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! @abr-egn any idea why the number conversion lint didn't catch this?

@abr-egn
Copy link
Contributor

abr-egn commented Dec 31, 2024

LGTM! @abr-egn any idea why the number conversion lint didn't catch this?

Aha, found it. Clippy is granular enough to treat sign loss as distinct from truncation or wrapping, and we don't have that turned on. I've filed RUST-2127 for that.

@pmeredit pmeredit merged commit 3358916 into mongodb:main Jan 1, 2025
15 of 17 checks passed
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