mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
AK: Remove the fallible constructor from FixedMemoryStream
This commit is contained in:
parent
8b2f23d016
commit
220fbcaa7e
31 changed files with 185 additions and 209 deletions
|
@ -10,14 +10,9 @@
|
|||
|
||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
auto bufstream_result = FixedMemoryStream::construct({ data, size });
|
||||
if (bufstream_result.is_error()) {
|
||||
dbgln("MemoryStream::construct() failed.");
|
||||
return 0;
|
||||
}
|
||||
auto bufstream = bufstream_result.release_value();
|
||||
FixedMemoryStream bufstream { { data, size } };
|
||||
|
||||
auto brotli_stream = Compress::BrotliDecompressionStream { *bufstream };
|
||||
auto brotli_stream = Compress::BrotliDecompressionStream { bufstream };
|
||||
|
||||
(void)brotli_stream.read_until_eof();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue