diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /library/cpp/blockcodecs | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) | |
download | ydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/blockcodecs')
-rw-r--r-- | library/cpp/blockcodecs/core/stream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/blockcodecs/core/stream.cpp b/library/cpp/blockcodecs/core/stream.cpp index c4b4865245..4f7db3c32b 100644 --- a/library/cpp/blockcodecs/core/stream.cpp +++ b/library/cpp/blockcodecs/core/stream.cpp @@ -186,10 +186,10 @@ size_t TDecodedInput::DoUnboundedNext(const void** ptr) { return 0; } - if (Y_UNLIKELY(blockLen > 1024 * 1024 * 1024)) { + if (Y_UNLIKELY(blockLen > 1024 * 1024 * 1024)) { ythrow yexception() << "block size exceeds 1 GiB"; - } - + } + TBuffer block; block.Resize(blockLen); |