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

SECBUG-240 Fix out-of-bounds reads #325

Merged
merged 5 commits into from
Mar 28, 2024
Merged

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Mar 21, 2024

Using strlen may result in reading beyond the end of the buffer (if the buffer is not null-terminated). For this reason, we should avoid using strlen and prefer a more explicit approach that also takes into account the size of the buffer.

@jamis jamis merged commit d3eab30 into mongodb:master Mar 28, 2024
41 of 43 checks passed
@jamis jamis deleted the cve-98-fix-oob-reads branch March 28, 2024 14:17
jamis added a commit to jamis/bson-ruby that referenced this pull request Mar 28, 2024
* final tweaks for BSON 5 release

* SECBUG-240 strlen might read beyond end of buffer

* ruby 2.6 isn't supported

* nix 2.6
jamis added a commit that referenced this pull request Apr 2, 2024
* SECBUG-240 Fix out-of-bounds reads (#325)

* final tweaks for BSON 5 release

* SECBUG-240 strlen might read beyond end of buffer

* ruby 2.6 isn't supported

* nix 2.6

* version bump
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.

2 participants