Changed paths:
M Lib/fontTools/ttLib/sfnt.py
M Tests/ttLib/sfnt_test.py
Log Message:
-----------
raise TTLibError instead of assert in WOFF decode path
The WOFF table and metadata size checks used bare asserts, which raise AssertionError rather than TTLibError and are dropped under python -O, so a corrupt WOFF was accepted with wrong-sized data. Mirrors the fromFile/loadData hardening for the WOFF-specific sites.