summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2018-11-01 11:02:34 +0000
committermarkd <markd@pkgsrc.org>2018-11-01 11:02:34 +0000
commit47b2d1260fff28fb3bcfb42b3f56f251cc0cbecf (patch)
tree103fba5307ab50cd2bf59e0b29d1df3fec8b5360
parent908ea09b428e262a5a5e11bd66c2b10738369195 (diff)
downloadpkgsrc-47b2d1260fff28fb3bcfb42b3f56f251cc0cbecf.tar.gz
web2c: writet1 protection against buffer overflow
-rw-r--r--print/web2c/Makefile4
-rw-r--r--print/web2c/distinfo3
-rw-r--r--print/web2c/patches/patch-pdftexdir_writet1.c18
3 files changed, 22 insertions, 3 deletions
diff --git a/print/web2c/Makefile b/print/web2c/Makefile
index 537c14dd8fa..24a99331818 100644
--- a/print/web2c/Makefile
+++ b/print/web2c/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.75 2018/09/02 21:32:44 wiz Exp $
+# $NetBSD: Makefile,v 1.76 2018/11/01 11:02:34 markd Exp $
DISTNAME= texlive-20180414-source
PKGNAME= web2c-2018
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= print
MASTER_SITES= ftp://tug.org/historic/systems/texlive/2018/
EXTRACT_SUFX= .tar.xz
diff --git a/print/web2c/distinfo b/print/web2c/distinfo
index 23a9b63d311..e183501006b 100644
--- a/print/web2c/distinfo
+++ b/print/web2c/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2018/05/15 06:11:45 minskim Exp $
+$NetBSD: distinfo,v 1.28 2018/11/01 11:02:34 markd Exp $
SHA1 (texlive-20180414-source.tar.xz) = 81bdd9999b6ab860d1d3c388cf27062aba960255
RMD160 (texlive-20180414-source.tar.xz) = 0ff63bbd7f8a0fb6417089f5d1ae1e4124a1dd95
@@ -8,3 +8,4 @@ SHA1 (patch-Makefile.in) = 28e7ad00f3796b49f92c5cc3eb3c94bdf38b1364
SHA1 (patch-am) = b7b81b1161a2117e756b25b80f9a676575267bdd
SHA1 (patch-pdftexdir_pdftoepdf-newpoppler.cc) = 6d778c1b493d1f498c07ea49a41a9f15d3f8d570
SHA1 (patch-pdftexdir_pdftosrc-newpoppler.cc) = 6601ac14720cc36321d3da70359218182f98915b
+SHA1 (patch-pdftexdir_writet1.c) = 7d00d5d5d3f884bc1f9946cb3fbcaa7f224df9de
diff --git a/print/web2c/patches/patch-pdftexdir_writet1.c b/print/web2c/patches/patch-pdftexdir_writet1.c
new file mode 100644
index 00000000000..75ddea57357
--- /dev/null
+++ b/print/web2c/patches/patch-pdftexdir_writet1.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-pdftexdir_writet1.c,v 1.1 2018/11/01 11:02:34 markd Exp $
+
+writet1 protection against buffer overflow
+
+git-svn-id: svn://tug.org/texlive/trunk/Build/source@48697 c570f23f-e606-0410-a88d-b1316a301751
+
+--- pdftexdir/writet1.c.orig 2016-11-25 18:24:37.000000000 +0000
++++ pdftexdir/writet1.c
+@@ -1598,7 +1598,9 @@ static void t1_check_unusual_charstring(
+ *(strend(t1_buf_array) - 1) = ' ';
+
+ t1_getline();
++ alloc_array(t1_buf, strlen(t1_line_array) + strlen(t1_buf_array) + 1, T1_BUF_SIZE);
+ strcat(t1_buf_array, t1_line_array);
++ alloc_array(t1_line, strlen(t1_buf_array) + 1, T1_BUF_SIZE);
+ strcpy(t1_line_array, t1_buf_array);
+ t1_line_ptr = eol(t1_line_array);
+ }