adobe-type-tools / afdko

Adobe Font Development Kit for OpenType
https://adobe-type-tools.github.io/afdko/
Other
1.06k stars 167 forks source link

add guards for h->otl == NULL before calling otlSubtableAdd #1716

Closed josh-hadley closed 1 year ago

josh-hadley commented 1 year ago

Description

Add guards for h->otl == NULL in GSUB and GPOS code. Previously this was not explicitly checked, but could be NULL resulting in segfault.

Checklist: