mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-22 02:49:29 +03:00
LibCompress: Replace ASSERT_NOT_REACHED with set_fatal_error.
We shouldn't assert that the input file is valid.
This commit is contained in:
parent
40e6a3dcc3
commit
f9ba037674
Notes:
sideshowbarker
2024-07-19 02:54:11 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/f9ba0376745 Pull-request: https://github.com/SerenityOS/serenity/pull/3405
@ -233,7 +233,8 @@ size_t DeflateDecompressor::read(Bytes bytes)
|
||||
return read(bytes);
|
||||
}
|
||||
|
||||
ASSERT_NOT_REACHED();
|
||||
set_fatal_error();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (m_state == State::ReadingCompressedBlock) {
|
||||
|
Loading…
Reference in New Issue
Block a user