seg fault when providing an empty object as an expression argument

XMLWordPrintableJSON

    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It looks like parsing an empty object in Expression::parseObject() produces a null pointer. And ExpressionNary::optimize() does not expect null pointers in vpOperand.

      Test:

      c = db.c;
      c.drop();
      c.save( {} );
      c.aggregate( { $project:{ a:{ $and:[ {} ] } } } );
      

            Assignee:
            Matt Dannenberg (Inactive)
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: