[fonttools/fonttools] 7d0e44: [feaLib] Don't crash on value records whose device...

0 views
Skip to first unread message

Cosimo Lupo

unread,
Oct 8, 2026, 7:04:50 AM (8 days ago) Oct 8
to fontto...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/fonttools/fonttools
Commit: 7d0e44f12d6d95f23f0af8fbdfd2c9580ef38f1c
https://github.com/fonttools/fonttools/commit/7d0e44f12d6d95f23f0af8fbdfd2c9580ef38f1c
Author: LuisFigueroaG <luis.h.f...@gmail.com>
Date: 2026-10-07 (Wed, 07 Oct 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/parser_test.py

Log Message:
-----------
[feaLib] Don't crash on value records whose devices are all NULL

Parsing a value record like <-80 0 -160 0 <device NULL> <device NULL>
<device NULL> <device NULL>> raised an IndexError, because the device
delta range check indexed into an empty list of deltas.

Fixes #2396


Commit: 4d4a5c80f573976549d8aba256986640b73232bd
https://github.com/fonttools/fonttools/commit/4d4a5c80f573976549d8aba256986640b73232bd
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-10-08 (Thu, 08 Oct 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/parser_test.py

Log Message:
-----------
Merge pull request #4261 from LuisFigueroaG/fix/fealib-null-device-records

[feaLib] Don't crash on value records whose devices are all NULL


Compare: https://github.com/fonttools/fonttools/compare/3f26c5e352dc...4d4a5c80f573

To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications
Reply all
Reply to author
Forward
0 new messages