diff options
Diffstat (limited to 'testing/t1lib/CVE-2010-2642.patch')
-rw-r--r-- | testing/t1lib/CVE-2010-2642.patch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/testing/t1lib/CVE-2010-2642.patch b/testing/t1lib/CVE-2010-2642.patch deleted file mode 100644 index cd548895856..00000000000 --- a/testing/t1lib/CVE-2010-2642.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/lib/t1lib/parseAFM.c b/lib/t1lib/parseAFM.c -index 6a31d7f..ba64541 100644 ---- a/lib/t1lib/parseAFM.c -+++ b/lib/t1lib/parseAFM.c -@@ -199,7 +199,9 @@ static char *token(stream) - idx = 0; - - while (ch != EOF && ch != ' ' && ch != CR && ch != LF && -- ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';'){ -+ ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';' -+ && idx < (MAX_NAME -1)) -+ { - ident[idx++] = ch; - ch = fgetc(stream); - } /* while */ -@@ -235,7 +237,7 @@ static char *linetoken(stream) - while ((ch = fgetc(stream)) == ' ' || ch == '\t' ); - - idx = 0; -- while (ch != EOF && ch != CR && ch != LF && ch != CTRL_Z) -+ while (ch != EOF && ch != CR && ch != LF && ch != CTRL_Z && idx < (MAX_NAME - 1)) - { - ident[idx++] = ch; - ch = fgetc(stream); |