Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6624

Read to invalid memory in Expression::parseOperand

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

                  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@mongodb.com Mathias Stearn
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: