mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibCore: Add support for ReadonlyBytes to MemoryStream
This commit is contained in:
parent
38a882ddfa
commit
d402f6cdb3
4 changed files with 22 additions and 6 deletions
|
@ -12,8 +12,7 @@
|
|||
|
||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
// FIXME: Create a ReadonlyBytes variant of Core::Stream::MemoryStream.
|
||||
auto input_stream_or_error = Core::Stream::MemoryStream::construct(Bytes { const_cast<uint8_t*>(data), size });
|
||||
auto input_stream_or_error = Core::Stream::MemoryStream::construct({ data, size });
|
||||
|
||||
if (input_stream_or_error.is_error())
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue