ref: e9df4c718a902fe6a8f490331092c2f92c194ce4
parent: 4bbf1d12b5c79eae94ba931052af66001659cc91
author: Sigrid <[email protected]>
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;