summaryrefslogtreecommitdiff
path: root/print/dvipsk
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2018-11-01 10:55:57 +0000
committermarkd <markd@pkgsrc.org>2018-11-01 10:55:57 +0000
commit490e651edcde577f64246bf1d6164a33394627d6 (patch)
tree08b787afaeb57fec544ca7605627745c14edc286 /print/dvipsk
parentf510ae67929271e57cd86b63a9eec82310af2742 (diff)
downloadpkgsrc-490e651edcde577f64246bf1d6164a33394627d6.tar.gz
dvipsk: writet1 protection against buffer overflow
Diffstat (limited to 'print/dvipsk')
-rw-r--r--print/dvipsk/Makefile3
-rw-r--r--print/dvipsk/distinfo3
-rw-r--r--print/dvipsk/patches/patch-texk_dvipsk_writet1.c18
3 files changed, 22 insertions, 2 deletions
diff --git a/print/dvipsk/Makefile b/print/dvipsk/Makefile
index f66904f38b5..e369b5df23f 100644
--- a/print/dvipsk/Makefile
+++ b/print/dvipsk/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2018/05/13 17:19:19 bsiegert Exp $
+# $NetBSD: Makefile,v 1.21 2018/11/01 10:55:57 markd Exp $
DISTNAME= texlive-20180414-source
PKGNAME= dvipsk-5.998
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ftp://tug.org/historic/systems/texlive/2018/
EXTRACT_SUFX= .tar.xz
diff --git a/print/dvipsk/distinfo b/print/dvipsk/distinfo
index 9045f2c6623..28e5c4b744d 100644
--- a/print/dvipsk/distinfo
+++ b/print/dvipsk/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.16 2018/05/13 12:31:37 markd Exp $
+$NetBSD: distinfo,v 1.17 2018/11/01 10:55:57 markd Exp $
SHA1 (texlive-20180414-source.tar.xz) = 81bdd9999b6ab860d1d3c388cf27062aba960255
RMD160 (texlive-20180414-source.tar.xz) = 0ff63bbd7f8a0fb6417089f5d1ae1e4124a1dd95
SHA512 (texlive-20180414-source.tar.xz) = ecac9b8203d2747be7ba7f82d68096d859fb35713276106d7049035dd3a8cfca07f8a8648982f0317b3812f8480db7326714de32f95998e3e6f73571de2aa140
Size (texlive-20180414-source.tar.xz) = 49770944 bytes
+SHA1 (patch-texk_dvipsk_writet1.c) = dee47f8382a33c0b246163e248d42df544b315d2
diff --git a/print/dvipsk/patches/patch-texk_dvipsk_writet1.c b/print/dvipsk/patches/patch-texk_dvipsk_writet1.c
new file mode 100644
index 00000000000..0e34684da36
--- /dev/null
+++ b/print/dvipsk/patches/patch-texk_dvipsk_writet1.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-texk_dvipsk_writet1.c,v 1.1 2018/11/01 10:55:57 markd Exp $
+
+writet1 protection against buffer overflow
+
+git-svn-id: svn://tug.org/texlive/trunk/Build/source@48697 c570f23f-e606-0410-a88d-b1316a301751
+
+--- texk/dvipsk/writet1.c.orig 2016-11-25 18:24:26.000000000 +0000
++++ texk/dvipsk/writet1.c
+@@ -1449,7 +1449,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);
+ }