serenity/Userland
Sam Atkins 80e756daef LibGfx: Load BitmapFont data more safely
Previously, `load_from_memory()` just took a raw pointer to the data,
and then manually calculated offsets from that pointer. Instead, let's
use the MappedFile we already have, to stream in the data, to make
things a bit safer. We also now check that the entire file's data was
read, since if there was data left over, then either the file is bad or
we've done something wrong.

I've moved the code directly into `try_load_from_mapped_file()` since
`load_from_memory()` was only called from there. The extra indirection
wasn't adding anything.
2023-10-10 14:36:25 +02:00
..
Applets Userland: Port remaining calls to Widget::set_tooltip_deprecated() 2023-10-06 08:20:11 +02:00
Applications LibGfx: Remove infallible BitmapFont::create() factory function 2023-10-10 14:36:25 +02:00
BuggieBox checksum: Add support for BLAKE2b 2023-09-17 16:49:35 +03:30
Demos Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
DevTools Userland: Port remaining calls to Widget::set_tooltip_deprecated() 2023-10-06 08:20:11 +02:00
DynamicLoader CMake: Use CMAKE_POSITION_INDEPENDENT_CODE instead of explicit -fpic 2023-09-18 10:26:42 +02:00
Games GameOfLife: Allow pressing escape to clear the selected pattern 2023-10-07 11:36:57 +02:00
Libraries LibGfx: Load BitmapFont data more safely 2023-10-10 14:36:25 +02:00
Services LibWeb: Port AttributeNames to FlyString 2023-10-08 08:11:48 -04:00
Shell Shell: Add support for the bashy list literals in POSIX mode 2023-10-07 22:16:35 +03:30
Utilities find: Don't canonicalize path operands 2023-10-07 11:37:53 +02:00
CMakeLists.txt