aboutsummaryrefslogtreecommitdiffstats
path: root/testing/t1lib/CVE-2010-2642.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 13:45:04 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 13:45:09 +0000
commit5cfc330054d44412ab52040143884f6d6744ff6a (patch)
treef4730bba71d9d7c28160f4d56cfc04cce7133098 /testing/t1lib/CVE-2010-2642.patch
parent33e42d98a49510143957cf1ed3cd2a2cd3b25aa4 (diff)
downloadaports-5cfc330054d44412ab52040143884f6d6744ff6a.tar.bz2
aports-5cfc330054d44412ab52040143884f6d6744ff6a.tar.xz
testing/t1lib: new aport
Diffstat (limited to 'testing/t1lib/CVE-2010-2642.patch')
-rw-r--r--testing/t1lib/CVE-2010-2642.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/t1lib/CVE-2010-2642.patch b/testing/t1lib/CVE-2010-2642.patch
new file mode 100644
index 0000000000..cd54889585
--- /dev/null
+++ b/testing/t1lib/CVE-2010-2642.patch
@@ -0,0 +1,24 @@
+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);