Ignore:
Timestamp:
Aug 26, 2008, 11:59:38 AM (13 years ago)
Author:
Eugene Romanenko
Message:

PDF plugin: Poppler library updated to version 0.8.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/fofi/FoFiTrueType.cc

    r250 r254  
    2121#include "FoFiType1C.h"
    2222#include "FoFiTrueType.h"
     23#include "poppler/Error.h"
    2324
    2425//
     
    18751876  tables = (TrueTypeTable *)gmallocn(nTables, sizeof(TrueTypeTable));
    18761877  pos += 12;
     1878  int wrongTables = 0;
    18771879  for (i = 0; i < nTables; ++i) {
    18781880    tables[i].tag = getU32BE(pos, &parsedOk);
     
    18821884    if (tables[i].offset + tables[i].len < tables[i].offset ||
    18831885        tables[i].offset + tables[i].len > len) {
    1884       parsedOk = gFalse;
     1886      i--;
     1887      wrongTables++;
     1888      error(-1, "Found a bad table definition on true type definition, trying to continue...");
    18851889    }
    18861890    pos += 16;
    18871891  }
     1892  nTables -= wrongTables;
     1893  tables = (TrueTypeTable *)greallocn(tables, nTables, sizeof(TrueTypeTable));
    18881894  if (!parsedOk) {
    18891895    return;
Note: See TracChangeset for help on using the changeset viewer.