Skip to content

Commit d0aa06b

Browse files
Fix ydb-cli vulnerabilities found by Coverity (#15111) (#15131)
1 parent 578ab91 commit d0aa06b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,10 @@ namespace NYdb::NConsoleClient {
881881
}
882882

883883
settings.AppendTopics(std::move(readSettings));
884+
885+
// This check was added for the static analyzer.
886+
Y_ABORT_UNLESS(!settings.EventHandlers_.DataReceivedHandler_);
887+
884888
return settings;
885889
}
886890

@@ -1025,6 +1029,9 @@ namespace NYdb::NConsoleClient {
10251029
settings.MessageGroupId(*MessageGroupId_);
10261030
settings.ProducerId(*MessageGroupId_);
10271031

1032+
// This check was added for the static analyzer.
1033+
Y_ABORT_UNLESS(!settings.EventHandlers_.AcksHandler_);
1034+
10281035
return settings;
10291036
}
10301037

0 commit comments

Comments
 (0)