Memory overrun caused by not allocating enough memory for bson iterators

XMLWordPrintableJSON

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

      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:
              Kyle Banker (Inactive)
              Reporter:
              Jose Sebastian Battig
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: