1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 20:07:35 +00:00

LibTTF: Make TTF::Font loading API return error strings

This commit is contained in:
Andreas Kling 2021-07-04 19:06:39 +02:00
parent 9321d9d83d
commit 560109bd42
4 changed files with 58 additions and 88 deletions

View file

@ -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;
}