diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /library/cpp/blockcodecs/core | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/core')
-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 4f7db3c32b..c4b4865245 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); |