Skip to content

Commit 2b5467c

Browse files
authored
check vector access (#7474)
1 parent 86f12be commit 2b5467c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ydb/services/metadata/ds_table/accessor_snapshot_base.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ void TDSAccessorBase::Handle(NRequest::TEvRequestResult<NRequest::TDialogYQLRequ
3434
Y_ABORT_UNLESS(it != CurrentExistence.end());
3535
Y_ABORT_UNLESS(it->second);
3636
if (it->second == 1) {
37+
Y_ABORT_UNLESS((int)replyIdx < qResult.result_sets().size());
3738
*qResultFull.add_result_sets() = std::move(qResult.result_sets()[replyIdx]);
3839
++replyIdx;
3940
} else {

0 commit comments

Comments
 (0)