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

Core dump in bson_append_string

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.90.0
    • 0.6
    • None
    • None
    • CentOS 6.3, Fedora 17

    Description

      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.

      Attachments

        Activity

          People

            gjmurakami Gary Murakami
            rps2 Rick Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: