ref: c59d04ae0cc5aaed5eef3381b9c01b3f2572f500
parent: 5edfa586205c1c9b886c313242c5e3506a10af4e
author: Sigrid <ftrvxmtrx@gmail.com>
date: Tue Aug 4 07:42:43 EDT 2020
libttf: check directory() result
--- a/sys/src/libttf/head.c
+++ b/sys/src/libttf/head.c
@@ -292,7 +292,7 @@
return nil;
u->bin = b;
u->nkern = -1;
- directory(u);
+ if(directory(u) < 0) goto error;
if(ttfgototable(u, "head") < 0) goto error;
ttfunpack(u, "16 w W 16 wwww 6 w", &u->flags, &u->emsize, &u->xmin, &u->ymin, &u->xmax, &u->ymax, &u->longloca);
if(ttfgototable(u, "maxp") < 0) goto error;
--
⑨