diff options
author | swarmer <swarmer@yandex-team.com> | 2024-08-07 00:19:42 +0300 |
---|---|---|
committer | swarmer <swarmer@yandex-team.com> | 2024-08-07 00:37:37 +0300 |
commit | a9c8987363503f0d434be8b1e7b494be65a2b477 (patch) | |
tree | 2338479c494ab77779f71c5fcb0e6810b3dcc52c /util/charset/utf8.cpp | |
parent | cdaa807d2e96e0b0b8560eddf04d8f31a607c9ff (diff) | |
download | ydb-a9c8987363503f0d434be8b1e7b494be65a2b477.tar.gz |
check the lifetime of various algorithms that return a substring of the input TStringBuf view
e778480cb05d20fe1a3fbf5ff69858c8912ed2d6
Diffstat (limited to 'util/charset/utf8.cpp')
-rw-r--r-- | util/charset/utf8.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/charset/utf8.cpp b/util/charset/utf8.cpp index efe3a52f61..b1ccb00e21 100644 --- a/util/charset/utf8.cpp +++ b/util/charset/utf8.cpp @@ -99,7 +99,7 @@ static const char* SkipUTF8Chars(const char* begin, const char* end, size_t numC return begin; } -TStringBuf SubstrUTF8(const TStringBuf str, size_t pos, size_t len) { +TStringBuf SubstrUTF8(const TStringBuf str Y_LIFETIME_BOUND, size_t pos, size_t len) { const char* start = SkipUTF8Chars(str.begin(), str.end(), pos); const char* end = SkipUTF8Chars(start, str.end(), len); return TStringBuf(start, end - start); |