Read to invalid memory in Expression::parseOperand

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.2.0-rc1
    • Affects Version/s: 2.2.0-rc0
    • Component/s: Aggregation Framework
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

                  BSONElement opCopy(*pBsonElement);
                  string value(opCopy.String());
      
                  /* check for a field path */
                  if (value[0] != '$')
                      goto ExpectConstant;  // assume plain string constant
      

      Does not work if the String is empty.

              Assignee:
              Mathias Stearn
              Reporter:
              Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: