libttf: check directory() result

front
Sigrid 2020-08-04 11:42:43 +02:00
parent 4bbf1d12b5
commit e9df4c718a
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ ttfopen(char *name, int ppem, int)
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;