SERVER-3425: Server crash when passed invalid JS in CodeWScope object
This commit is contained in:
@@ -661,6 +661,8 @@ namespace mongo {
|
||||
}
|
||||
case CodeWScope: {
|
||||
JSFunction * func = compileFunction( e.codeWScopeCode() );
|
||||
if ( !func )
|
||||
return JSVAL_NULL;
|
||||
|
||||
BSONObj extraScope = e.codeWScopeObject();
|
||||
if ( ! extraScope.isEmpty() ) {
|
||||
|
||||
Reference in New Issue
Block a user