Core dump in bson_append_string

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 0.90.0
    • Affects Version/s: 0.6
    • Component/s: None
    • None
    • Environment:
      CentOS 6.3, Fedora 17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When using bson_append_string(), if the string you're appending is null the function segfaults. Example code:

      bson_append_string(obj, "Field", fields[x]);

      If "fields[x]" evaluates to a null pointer, the function will segfault. It's an easy workaround (check values before passing to the function), but it was a bit of a surprise when it happened.

              Assignee:
              Gary Murakami (Inactive)
              Reporter:
              Rick Stevens
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: