From f9ba0376745d6d21f116da1c74288f7478a4bdb9 Mon Sep 17 00:00:00 2001 From: asynts Date: Thu, 3 Sep 2020 17:48:44 +0200 Subject: [PATCH] LibCompress: Replace ASSERT_NOT_REACHED with set_fatal_error. We shouldn't assert that the input file is valid. --- Libraries/LibCompress/Deflate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibCompress/Deflate.cpp b/Libraries/LibCompress/Deflate.cpp index 0ff47adb99..458096953e 100644 --- a/Libraries/LibCompress/Deflate.cpp +++ b/Libraries/LibCompress/Deflate.cpp @@ -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) {