diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-02-16 18:48:02 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-02-16 18:48:02 (GMT) |
commit | 968b1a440b51a77f0a4c24d0e42204363e034b0e (patch) | |
tree | e657dd21ca18adb1d045b4d56ee87b3f161c19e6 /abs/extra/t1lib/CVE-2010-2642.patch | |
parent | df9d46703d7bfad1458790a7469987948fa54e58 (diff) | |
download | linhes_pkgbuild-968b1a440b51a77f0a4c24d0e42204363e034b0e.zip linhes_pkgbuild-968b1a440b51a77f0a4c24d0e42204363e034b0e.tar.gz linhes_pkgbuild-968b1a440b51a77f0a4c24d0e42204363e034b0e.tar.bz2 |
t1lib: inital inclusion
Diffstat (limited to 'abs/extra/t1lib/CVE-2010-2642.patch')
-rw-r--r-- | abs/extra/t1lib/CVE-2010-2642.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/abs/extra/t1lib/CVE-2010-2642.patch b/abs/extra/t1lib/CVE-2010-2642.patch new file mode 100644 index 0000000..cd54889 --- /dev/null +++ b/abs/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); |