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

Memory overrun caused by not allocating enough memory for bson iterators

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 0.6
    • Affects Version/s: TBD
    • Component/s: None
    • Labels:
    • Major Change

      The bson_iterator_create() was modified as follows in order to prevent the overrun:

      MONGO_EXPORT bson_iterator* bson_iterator_create() {
      /* JSB: In the following line I fixed sizeof(bson_iterator*) to sizeof(bson_iterator) */
      return (bson_iterator*)malloc(sizeof(bson_iterator));
      }

            Assignee:
            kbanker Kyle Banker
            Reporter:
            k2xt Jose Sebastian Battig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: