summaryrefslogtreecommitdiff
path: root/src/mongo/bson/oid.cpp
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyaskalyan@gmail.com>2018-10-08 15:49:24 -0400
committerShreyas Kalyan <shreyaskalyan@gmail.com>2018-10-12 16:35:55 -0400
commit2e58710210f996eea00e192f987ae90acb71abbf (patch)
tree4eb63e2f39158302eadb96d15013dfde85730e08 /src/mongo/bson/oid.cpp
parent8657f94a66ff4950a9dc4c04eebec86730d87db2 (diff)
downloadmongo-2e58710210f996eea00e192f987ae90acb71abbf.tar.gz
SERVER-36272 Catch error in parsing values after % in URIs
Diffstat (limited to 'src/mongo/bson/oid.cpp')
-rw-r--r--src/mongo/bson/oid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/oid.cpp b/src/mongo/bson/oid.cpp
index 26d90d97bad..b875cdf10d6 100644
--- a/src/mongo/bson/oid.cpp
+++ b/src/mongo/bson/oid.cpp
@@ -151,7 +151,7 @@ void OID::init(const std::string& s) {
verify(s.size() == 24);
const char* p = s.c_str();
for (std::size_t i = 0; i < kOIDSize; i++) {
- _data[i] = fromHex(p);
+ _data[i] = uassertStatusOK(fromHex(p));
p += 2;
}
}