diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/shell/encrypted_dbclient_base.cpp | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/shell/encrypted_dbclient_base.cpp')
| -rw-r--r-- | src/mongo/shell/encrypted_dbclient_base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/shell/encrypted_dbclient_base.cpp b/src/mongo/shell/encrypted_dbclient_base.cpp index b9151685a93..391ef009fd3 100644 --- a/src/mongo/shell/encrypted_dbclient_base.cpp +++ b/src/mongo/shell/encrypted_dbclient_base.cpp @@ -301,7 +301,7 @@ BSONObj EncryptedDBClientBase::validateBSONElement(ConstDataRange out, uint8_t b builder.appendNum(static_cast<uint32_t>(docLength)); builder.appendChar(static_cast<uint8_t>(bsonType)); - builder.appendStr(valueString, true); + builder.appendCStr(valueString); builder.appendBuf(out.data(), out.length()); builder.appendChar('\0'); @@ -471,7 +471,7 @@ void EncryptedDBClientBase::encrypt(mozjs::MozJSImplScope* scope, } plaintextBuilder.appendNum(static_cast<uint32_t>(valueStr.size() + 1)); - plaintextBuilder.appendStr(valueStr, true); + plaintextBuilder.appendStrBytesAndNul(valueStr); bsonType = BSONType::String; } else if (args.get(1).isNumber()) { |
