aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Neporada <neporada@gmail.com>2022-06-19 02:01:04 +0300
committerAndrey Neporada <neporada@gmail.com>2022-06-19 02:01:04 +0300
commitbc53f1358b22fc1040876db2384d8dcd5bcab828 (patch)
tree7f5efb511626cf9c81000a6d03dd12449adac8a6
parent8e2e903d222a17b6ba3da50f43d0e6bf49f8d583 (diff)
downloadydb-bc53f1358b22fc1040876db2384d8dcd5bcab828.tar.gz
[yql] Fix out-of-bounds access in unhappy path
ref:942ed2ea25bbd88b1a24ee2804e2c6a245ceb688
-rw-r--r--ydb/library/yql/core/type_ann/type_ann_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/yql/core/type_ann/type_ann_core.cpp b/ydb/library/yql/core/type_ann/type_ann_core.cpp
index a2e20dcc89..187abebcae 100644
--- a/ydb/library/yql/core/type_ann/type_ann_core.cpp
+++ b/ydb/library/yql/core/type_ann/type_ann_core.cpp
@@ -6049,7 +6049,7 @@ template <NKikimr::NUdf::EDataSlot DataSlot>
}
if (input->ChildrenSize() % 2U) {
- ctx.Expr.AddError(TIssue(ctx.Expr.GetPosition(input->Child(4)->Pos()), TStringBuilder() << "Expected even arguments."));
+ ctx.Expr.AddError(TIssue(ctx.Expr.GetPosition(input->Pos()), TStringBuilder() << "Expected even number of arguments"));
return IGraphTransformer::TStatus::Error;
}