Commit 2bc26dff authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

2005-07-26 Kristian Høgsberg <krh@redhat.com>

        * fofi/FoFiType1.cc: Make check for end of encoding array a bit
        more liberal so we don't crash on complex encoding arrays (#3344).
parent 07911274
2005-07-26 Kristian Høgsberg <krh@redhat.com>
* fofi/FoFiType1.cc: Make check for end of encoding array a bit
more liberal so we don't crash on complex encoding arrays.
2005-07-25 Albert Astals Cid <aacid@kde.org>
* poppler/DCTStream.cc: Work on bad jpeg data that have garbage before
......
......@@ -186,20 +186,13 @@ void FoFiType1::parse() {
}
}
}
} else {
p = strtok(buf, " \t\n\r");
if (p) {
if (!strcmp(p, "def"))
break;
if (!strcmp(p, "readonly"))
break;
/* the spec does not says this but i'm mantaining old xpdf behaviour
* that accepts "foo def" as end of the encoding array */
p = strtok(NULL, " \t\n\r");
if (p && !strcmp(p, "def"))
break;
}
}
}
// Any line that begins with "def" or contains " def"
// terminates the encoding array.
if (!strcmp (p, "def") || strstr (buf, " def"))
break;
line = line1;
}
//~ check for getinterval/putinterval junk
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment