summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-04 19:06:39 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-04 21:34:26 +0200
commit560109bd42006c15170521c69a0d50d141ef65ec (patch)
treeb6213bc040d8fd76f34b32bfb0504610200bc6f4 /Meta/Lagom/Fuzzers
parent9321d9d83d366ad4cf686c856063ff9ac97c18a4 (diff)
downloadserenity-560109bd42006c15170521c69a0d50d141ef65ec.zip
LibTTF: Make TTF::Font loading API return error strings
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzTTF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzTTF.cpp b/Meta/Lagom/Fuzzers/FuzzTTF.cpp
index 0d251b5ea3..f02962a437 100644
--- a/Meta/Lagom/Fuzzers/FuzzTTF.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzTTF.cpp
@@ -11,6 +11,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
ByteBuffer font_data = ByteBuffer::copy(data, size);
- TTF::Font::load_from_memory(font_data);
+ (void)TTF::Font::try_load_from_memory(font_data);
return 0;
}