forked from minhngoc25a/freetype2
[truetype] Fix UBSan warning on offset to nullptr (#57501).
* src/truetype/ttinterp.c (Ins_CALL): Fail if `exc->FDefs' is null.
This commit is contained in:
parent
a4df0373c7
commit
10d8de7541
|
@ -1,3 +1,9 @@
|
|||
2020-01-02 Dominik Röttsches <drott@chromium.org>
|
||||
|
||||
[truetype] Fix UBSan warning on offset to nullptr (#57501).
|
||||
|
||||
* src/truetype/ttinterp.c (Ins_CALL): Fail if `exc->FDefs' is null.
|
||||
|
||||
2019-12-31 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
|
||||
|
||||
[woff2] Allow bitmap-only fonts (#57394).
|
||||
|
|
|
@ -3965,6 +3965,9 @@
|
|||
if ( BOUNDSL( F, exc->maxFunc + 1 ) )
|
||||
goto Fail;
|
||||
|
||||
if ( !exc->FDefs )
|
||||
goto Fail;
|
||||
|
||||
/* Except for some old Apple fonts, all functions in a TrueType */
|
||||
/* font are defined in increasing order, starting from 0. This */
|
||||
/* means that we normally have */
|
||||
|
|
Loading…
Reference in New Issue