summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzTTF.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzTTF.cpp b/Meta/Lagom/Fuzzers/FuzzTTF.cpp
index f02962a437..a4214857f2 100644
--- a/Meta/Lagom/Fuzzers/FuzzTTF.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzTTF.cpp
@@ -8,9 +8,8 @@
#include <stddef.h>
#include <stdint.h>
-extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
+extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
{
- ByteBuffer font_data = ByteBuffer::copy(data, size);
- (void)TTF::Font::try_load_from_memory(font_data);
+ (void)TTF::Font::try_load_from_externally_owned_memory({ data, size });
return 0;
}