diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:39:40 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:57:14 +0300 |
commit | e601ca03f859335d57ecff2e5aa6af234b6052ed (patch) | |
tree | de519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/streams/brotli | |
parent | bbf2b6878af3854815a2c0ecb07a687071787639 (diff) | |
download | ydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/streams/brotli')
-rw-r--r-- | library/cpp/streams/brotli/brotli.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/streams/brotli/brotli.cpp b/library/cpp/streams/brotli/brotli.cpp index 38052cb688..4e6ce64531 100644 --- a/library/cpp/streams/brotli/brotli.cpp +++ b/library/cpp/streams/brotli/brotli.cpp @@ -55,7 +55,7 @@ public: void Finish() { Flush(); DoWrite(nullptr, 0, BROTLI_OPERATION_FINISH); - Y_VERIFY(BrotliEncoderIsFinished(EncoderState_)); + Y_ABORT_UNLESS(BrotliEncoderIsFinished(EncoderState_)); } private: @@ -171,7 +171,7 @@ public: ythrow yexception() << "Brotli decoder failed to decompress buffer: " << BrotliDecoderErrorString(code); } else if (result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) { - Y_VERIFY(availableOut != size, + Y_ABORT_UNLESS(availableOut != size, "Buffer passed to read in Brotli decoder is too small"); break; } @@ -213,7 +213,7 @@ private: } void ResetState() { - Y_VERIFY(BrotliDecoderIsFinished(DecoderState_)); + Y_ABORT_UNLESS(BrotliDecoderIsFinished(DecoderState_)); FreeDecoder(); InitDecoder(); } |