Skip to content
Commit 336503df authored by Werner Lemberg's avatar Werner Lemberg
Browse files

[woff2] Avoid allocation bomb.

This is a fix for commit 85167dbd, reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60615

* src/sfnt/sfwoff2.c (MAX_SFNT_SIZE): New macro.
(woff2_open_font): Use it to limit the maximum size of an uncompressed WOFF2
font.
parent 3c92e7bf
Pipeline #937414 passed with stage
in 5 minutes and 46 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment