* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10316
This commit is contained in:
Werner Lemberg 2018-09-13 08:46:44 +02:00
parent 6b53300b01
commit a5818ed1e1
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2018-09-13 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10316
2018-09-12 John Tytgat <John.Tytgat@esko.com>
[sfnt] Better PS name handling (#54629).

View File

@ -841,7 +841,7 @@
sfnt_is_alphanumeric,
0 );
len = ft_strlen( result );
len = result ? ft_strlen( result ) : 0;
/* sanitize if necessary; we reserve space for 36 bytes (a 128bit */
/* checksum as a hex number, preceded by `-' and followed by three */