aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhor911 <hor911@ydb.tech>2023-05-02 11:36:43 +0300
committerhor911 <hor911@ydb.tech>2023-05-02 11:36:43 +0300
commitb654d995830b11f09b4ba6dcd3c815add8a50093 (patch)
treeb1c00ae76a701876cae852273dde09d536a7e660
parent4e22469500c863f8904cda138a2406e1c47a5aa5 (diff)
downloadydb-b654d995830b11f09b4ba6dcd3c815add8a50093.tar.gz
Fix use after free
-rw-r--r--ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp
index 798a50b6de..ca2eaa346c 100644
--- a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp
+++ b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp
@@ -2679,8 +2679,8 @@ private:
if (it == RetryStuffForFile.end()) {
return;
}
- RetryStuffForFile.erase(it);
auto size = it->second->SizeLimit;
+ RetryStuffForFile.erase(it);
if (DownloadSize < size) {
DownloadSize = 0;
} else {