mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-09 20:00:11 -06:00
The WOFF2 decoder rebuilds every collection font's table directory (16 bytes per listed table) before checking its output size, while the file spends as little as one byte per listed table. A small collection listing the same tables over and over made it allocate hundreds of megabytes twice. Preflight the collection directory before decoding: the rebuilt directories must fit 16 MiB and no font may list a table twice.