diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-03-22 13:57:25 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-03-23 13:45:43 -0400 |
commit | d0bf5fbe535b71e3127d59a01e7fab80425f66e6 (patch) | |
tree | 4c44eb4c3c07add34c9e570885794e39548a6b1f /src/mongo/db/repl/apply_ops.cpp | |
parent | db787fb0a1627756a2a9204b2716ea4f4b9f3ea7 (diff) | |
download | mongo-d0bf5fbe535b71e3127d59a01e7fab80425f66e6.tar.gz |
SERVER-33854 Avoid accessing invalid memory in applyOps
Diffstat (limited to 'src/mongo/db/repl/apply_ops.cpp')
-rw-r--r-- | src/mongo/db/repl/apply_ops.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/apply_ops.cpp b/src/mongo/db/repl/apply_ops.cpp index ce59247fabb..3a732c407ec 100644 --- a/src/mongo/db/repl/apply_ops.cpp +++ b/src/mongo/db/repl/apply_ops.cpp @@ -77,7 +77,7 @@ bool _parseAreOpsCrudOnly(const BSONObj& applyOpCmd) { BSONElement& fieldOp = fields[1]; const char* opType = fieldOp.valuestrsafe(); - const StringData ns = fieldNs.valueStringData(); + const StringData ns = fieldNs.valuestrsafe(); // All atomic ops have an opType of length 1. if (opType[0] == '\0' || opType[1] != '\0') |