mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[sbix] Limit glyph extents
Fixes https://github.com/harfbuzz/harfbuzz/issues/3557
This commit is contained in:
parent
cd05d187c8
commit
62e803b361
2 changed files with 6 additions and 0 deletions
|
@ -298,6 +298,12 @@ struct sbix
|
|||
|
||||
const PNGHeader &png = *blob->as<PNGHeader>();
|
||||
|
||||
if (png.IHDR.height >= 65536 | png.IHDR.width >= 65536)
|
||||
{
|
||||
hb_blob_destroy (blob);
|
||||
return false;
|
||||
}
|
||||
|
||||
extents->x_bearing = x_offset;
|
||||
extents->y_bearing = png.IHDR.height + y_offset;
|
||||
extents->width = png.IHDR.width;
|
||||
|
|
BIN
test/fuzzing/fonts/sbix-extents.ttf
Normal file
BIN
test/fuzzing/fonts/sbix-extents.ttf
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue