Skip to content

Commit f4ba086

Browse files
authored
IGNIETFERRO-2059: Fix use-after-free error in the TDqExecuter (#4568)
1 parent 299ee83 commit f4ba086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/library/yql/providers/dq/actors/executer_actor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ class TDqExecuter: public TRichActor<TDqExecuter>, NYql::TCounters {
9999

100100
Yql::DqsProto::TWorkerFilter GetPragmaFilter() {
101101
Yql::DqsProto::TWorkerFilter pragmaFilter;
102-
if (Settings->WorkerFilter.Get()) {
102+
if (const auto& filter = Settings->WorkerFilter.Get(); filter.Defined()) {
103103
try {
104-
TStringInput inputStream1(Settings->WorkerFilter.Get().GetOrElse(""));
104+
TStringInput inputStream1(*filter);
105105
ParseFromTextFormat(inputStream1, pragmaFilter);
106106
} catch (...) {
107107
YQL_CLOG(INFO, ProviderDq) << "Cannot parse filter pragma " << CurrentExceptionMessage();

0 commit comments

Comments
 (0)