[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: |
| Comment by Christopher Triolo [ 22/Jul/10 ] |
|
Resolved in: |