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

segfault on network err in legacy update or delete

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2-beta1
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      This code calls bson_destroy (gle) on the result of a getlasterror call, when the getlasterror call has failed and the "gle" bson object is NULL:

      https://github.com/mongodb/mongo-c-driver/blob/a0219c9777f90187fa73d3fa24c66030e0db2a04/src/mongoc/mongoc-write-command.c#L730

      The result is a segfault.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: