1 --- gpdf-2.8.2.orig/fofi/FoFiTrueType.cc
2 +++ gpdf-2.8.2/fofi/FoFiTrueType.cc
7 + // make sure the loca table is sane (correct length and entries are
9 + i = seekTable("loca");
10 + if (tables[i].len < (nGlyphs + 1) * (locaFmt ? 4 : 2)) {
14 + for (j = 0; j <= nGlyphs; ++j) {
16 + pos = (int)getU32BE(tables[i].offset + j*4, &parsedOk);
18 + pos = getU16BE(tables[i].offset + j*2, &parsedOk);
20 + if (pos < 0 || pos > len) {
27 // read the post table