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

mongoc_write_concern_destroy() may attempt to free null wtag pointer

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.0, 1.3.5
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I believe this issue dates back to the introduction of the wtag field in 2da6c03. We never caught this in PHPC because our custom free function (for bson_mem_vtable_t) would NOP on a null pointer; however, I'm not sure why this wouldn't have been caught for the default memory handler, which uses free().

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: