mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +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
|
@ -10,7 +10,7 @@
|
|||
|
||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
auto bufstream_result = Core::Stream::MemoryStream::construct({ const_cast<uint8_t*>(data), size });
|
||||
auto bufstream_result = Core::Stream::MemoryStream::construct({ data, size });
|
||||
if (bufstream_result.is_error()) {
|
||||
dbgln("MemoryStream::construct() failed.");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue