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

Malformed bson can force a fatal error #116

Closed
stusmall opened this issue Feb 25, 2019 · 0 comments
Closed

Malformed bson can force a fatal error #116

stusmall opened this issue Feb 25, 2019 · 0 comments

Comments

@stusmall
Copy link
Contributor

This came up from some fuzz testing of the crate. I don't know bson's wire protocol but from the output of bsondump it looks like the issue is it declares an illegal BSONSize and the crate still tries to allocate it and crashes.

The offending binary is: [0x06, 0xcc, 0xf9, 0x0a, 0x05, 0x00, 0x00, 0x03, 0x00, 0xff, 0xff]

@stusmall stusmall mentioned this issue Feb 25, 2019
stusmall added a commit to stusmall/bson-rs that referenced this issue Feb 25, 2019
stusmall added a commit to stusmall/bson-rs that referenced this issue Feb 25, 2019
stusmall added a commit to stusmall/bson-rs that referenced this issue Feb 25, 2019
stusmall added a commit to stusmall/bson-rs that referenced this issue Feb 25, 2019
zonyitoo pushed a commit that referenced this issue Mar 1, 2019
* Add simple fuzzer and one failing test case

* Fix for #116
@stusmall stusmall closed this as completed Mar 1, 2019
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

No branches or pull requests

1 participant