mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
LibGfx/WOFF2: Ensure numTables
is within expected range
An error is now returned if `numTables` is zero or greater than 4096. While this isn't explicitly mentioned in the specification, subsequent calculations will be incorrect if the value falls outside this range.
This commit is contained in:
parent
e48b3b39cf
commit
52f78d07b8
3 changed files with 4 additions and 1 deletions
BIN
Tests/LibGfx/test-inputs/woff2/invalid_numtables.woff2
Normal file
BIN
Tests/LibGfx/test-inputs/woff2/invalid_numtables.woff2
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue