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

Core dump in bson_append_string

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

      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:
            gjmurakami Gary Murakami
            Reporter:
            rps2 Rick Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: