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

Use the new BSON methods to prevent buffer overruns #1285

Closed
joeljfischer opened this issue May 29, 2019 · 0 comments
Closed

Use the new BSON methods to prevent buffer overruns #1285

joeljfischer opened this issue May 29, 2019 · 0 comments
Labels
bug A defect in the library
Projects
Milestone

Comments

@joeljfischer
Copy link
Contributor

Bug Report

Quoting from another engineer:

You will just need to change all uses of the bson_object_from_bytes function to use the new bson_object_from_bytes_len function, as such:

BsonObject payloadObject = bson_object_from_bytes((BytePtr)data.bytes);

to

BsonObject payloadObject;
int len = bson_object_from_bytes_len(&payloadObject, (BytePtr)data.bytes, data.length);
@joeljfischer joeljfischer added the bug A defect in the library label May 29, 2019
@joeljfischer joeljfischer added this to To do in v6.3 via automation May 29, 2019
@joeljfischer joeljfischer added this to the 6.3.0 milestone May 29, 2019
v6.3 automation moved this from To do to Done May 31, 2019
@joeljfischer joeljfischer mentioned this issue Jun 24, 2019
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
No open projects
v6.3
  
Done
Development

No branches or pull requests

1 participant