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

bson_append_element failure

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 0.2
    • None
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: