Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-12

bson_append_element failure

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 0.2
    • Component/s: None
    • Labels:
      None

      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

            Assignee:
            ctriolo Christopher Triolo
            Reporter:
            mikejs Michael Stephens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: