summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/value.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2016-04-10 13:18:13 -0400
committerAndrew Morrow <acm@mongodb.com>2016-04-15 10:08:39 -0400
commitc1fcce5c1e5ed72c634c5a6d0deaa373b1960839 (patch)
tree6ca4f6892288699f2c6be5beac46e115eaad57b2 /src/mongo/db/pipeline/value.cpp
parent001b19777899b65a8c9227c64efa3f370921cbb1 (diff)
downloadmongo-c1fcce5c1e5ed72c634c5a6d0deaa373b1960839.tar.gz
SERVER-16221 SERVER-23710 BinDataType should be read as unsigned in Value
Diffstat (limited to 'src/mongo/db/pipeline/value.cpp')
-rw-r--r--src/mongo/db/pipeline/value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/value.cpp b/src/mongo/db/pipeline/value.cpp
index be0d90af829..9d98f8d6f02 100644
--- a/src/mongo/db/pipeline/value.cpp
+++ b/src/mongo/db/pipeline/value.cpp
@@ -1243,7 +1243,7 @@ Value Value::deserializeForSorter(BufReader& buf, const SorterDeserializeSetting
}
case BinData: {
- BinDataType bdt = BinDataType(buf.read<char>());
+ BinDataType bdt = BinDataType(buf.read<unsigned char>());
int size = buf.read<LittleEndian<int>>();
const void* data = buf.skip(size);
return Value(BSONBinData(data, size, bdt));