Skip to content

Commit bc3026c

Browse files
Fix ydb-cli vulnerabilities found by Coverity (#16290) (#16305)
1 parent 5b416ec commit bc3026c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,7 @@ namespace NYdb::NConsoleClient {
882882

883883
settings.AppendTopics(std::move(readSettings));
884884

885-
// This check was added for the static analyzer.
886-
Y_ABORT_UNLESS(!settings.EventHandlers_.DataReceivedHandler_);
885+
// coverity[uninit_use]
887886

888887
return settings;
889888
}
@@ -1029,8 +1028,7 @@ namespace NYdb::NConsoleClient {
10291028
settings.MessageGroupId(*MessageGroupId_);
10301029
settings.ProducerId(*MessageGroupId_);
10311030

1032-
// This check was added for the static analyzer.
1033-
Y_ABORT_UNLESS(!settings.EventHandlers_.AcksHandler_);
1031+
// coverity[uninit_use]
10341032

10351033
return settings;
10361034
}

0 commit comments

Comments
 (0)