[CDRIVER-12] bson_append_element failure Created: 04/Feb/10  Updated: 03/May/17  Resolved: 22/Jul/10

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 0.2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Michael Stephens Assignee: Christopher Triolo
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When a custom key is passed to bson_append_element it gets wrongly appended to the buffer twice (once by bson_append_estart, once by a separate bson_append). Ther data_size calculation is also wrong (need to subtract one element type marker and one for the null byte at the end of the key).

See http://github.com/mikejs/mongo-c-driver/commit/5b311e444f361b0b4828430d3af75513bbf102fe



 Comments   
Comment by auto [ 11/Feb/11 ]

Author:

{u'login': u'ctriolo', u'name': u'Christopher Triolo', u'email': u'ctriolo@princeton.edu'}

Message: CDRIVER-12
https://github.com/mongodb/mongo-c-driver/commit/22da63afbb1409dead6b7f303cc4e5409662a251

Comment by Christopher Triolo [ 22/Jul/10 ]

Resolved in:
http://github.com/ctriolo/mongo-c-driver/commit/fc1e701914cc8a8d152d9d5a6e284d9ca0ec4f5d

Generated at Wed Feb 07 21:08:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.