summaryrefslogtreecommitdiff
path: root/extra/t1lib/CVE-2010-2642.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-17 22:45:31 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-17 22:45:31 -0300
commit27a90a9d957b56dac972c9df0febb6262fb90dce (patch)
tree79251bdfb00539a1ddf1592d80eacd47971dcf24 /extra/t1lib/CVE-2010-2642.patch
parent87b9cca463a1dbf2b5026c9dc770b5591b2d3fdc (diff)
parent8185891e28635bdb83fdf4ba4391030912dae596 (diff)
Merge branch 'master' of gparabola:abslibre/abslibre-pre-mips64el
Conflicts: libre/audacious-plugins-libre/PKGBUILD libre/linux-libre/PKGBUILD
Diffstat (limited to 'extra/t1lib/CVE-2010-2642.patch')
-rw-r--r--extra/t1lib/CVE-2010-2642.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/t1lib/CVE-2010-2642.patch b/extra/t1lib/CVE-2010-2642.patch
new file mode 100644
index 000000000..cd5488958
--- /dev/null
+++ b/extra/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);