mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:07:45 +00:00
LibTTF: Make TTF::Font loading API return error strings
This commit is contained in:
parent
9321d9d83d
commit
560109bd42
4 changed files with 58 additions and 88 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue