bson_append_long produces bogus data

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 0.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      bson_append_long promises to write an 64 bit number in the header (with the bson_append_estart call), but it writes an 32-bit value.

      This was introduced in http://github.com/mongodb/mongo-c-driver/commit/e6eb5ba2cf1d79f0b519834ec5df25c4cd2168c2

      To fix, just replace bson_append32 with bson_append64.

            Assignee:
            Mathias Stearn
            Reporter:
            Rui Lopes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: