diff options
author | Adam Chelminski <adam.chelminski@mongodb.com> | 2016-08-17 17:11:10 -0400 |
---|---|---|
committer | Adam Chelminski <adam.chelminski@mongodb.com> | 2016-08-19 11:11:23 -0400 |
commit | 1a3d60af4d27d72e15637bb43510fe1b592a6c43 (patch) | |
tree | 7ab2edd2291f41a2fe37262f32e37618de5f0388 /src/mongo/db | |
parent | 76f1c8254147f806fef11e9dedabee359422c02b (diff) | |
download | mongo-1a3d60af4d27d72e15637bb43510fe1b592a6c43.tar.gz |
SERVER-13517 Internal client validates BSON in all command responses and when reading from cursor in DBClientCursor
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/dbmessage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h index 7fabf117421..01530edd641 100644 --- a/src/mongo/db/dbmessage.h +++ b/src/mongo/db/dbmessage.h @@ -138,6 +138,10 @@ public: return storage().view(sizeof(Layout)); } + int32_t dataLen() const { + return msgdata().getLen() - sizeof(Layout); + } + protected: const ConstDataView& storage() const { return _storage; |