SERVER-114819 Fix uninitialized pointer read (#45208)

GitOrigin-RevId: b6431614e5b5f097b25cafa8b71471139adbd459
This commit is contained in:
Adithi Raghavan 2025-12-12 16:38:26 -05:00 committed by MongoDB Bot
parent 53adb17228
commit e5d1688374
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ void ExecAggStageHandle::close() {
BSONObj ExecAggStageHandle::explain(mongo::ExplainOptions::Verbosity verbosity) const { BSONObj ExecAggStageHandle::explain(mongo::ExplainOptions::Verbosity verbosity) const {
assertValid(); assertValid();
::MongoExtensionByteBuf* buf; ::MongoExtensionByteBuf* buf{nullptr};
auto extVerbosity = convertHostVerbosityToExtVerbosity(verbosity); auto extVerbosity = convertHostVerbosityToExtVerbosity(verbosity);
invokeCAndConvertStatusToException( invokeCAndConvertStatusToException(
[&]() { return vtable().explain(get(), extVerbosity, &buf); }); [&]() { return vtable().explain(get(), extVerbosity, &buf); });