pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/web2c web2c: writet1 protection against buffer o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/878426c0331c
branches:  trunk
changeset: 386875:878426c0331c
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Nov 01 11:02:34 2018 +0000

description:
web2c: writet1 protection against buffer overflow

diffstat:

 print/web2c/Makefile                          |   4 ++--
 print/web2c/distinfo                          |   3 ++-
 print/web2c/patches/patch-pdftexdir_writet1.c |  18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 66afc7546309 -r 878426c0331c print/web2c/Makefile
--- a/print/web2c/Makefile      Thu Nov 01 10:59:15 2018 +0000
+++ b/print/web2c/Makefile      Thu Nov 01 11:02:34 2018 +0000
@@ -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 -r 66afc7546309 -r 878426c0331c print/web2c/distinfo
--- a/print/web2c/distinfo      Thu Nov 01 10:59:15 2018 +0000
+++ b/print/web2c/distinfo      Thu Nov 01 11:02:34 2018 +0000
@@ -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-am) = b7b81b1161a2117e756b25b80f9a676575267bdd
 SHA1 (patch-pdftexdir_pdftoepdf-newpoppler.cc) = 6d778c1b493d1f498c07ea49a41a9f15d3f8d570
 SHA1 (patch-pdftexdir_pdftosrc-newpoppler.cc) = 6601ac14720cc36321d3da70359218182f98915b
+SHA1 (patch-pdftexdir_writet1.c) = 7d00d5d5d3f884bc1f9946cb3fbcaa7f224df9de
diff -r 66afc7546309 -r 878426c0331c print/web2c/patches/patch-pdftexdir_writet1.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/web2c/patches/patch-pdftexdir_writet1.c     Thu Nov 01 11:02:34 2018 +0000
@@ -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);
+     }



Home | Main Index | Thread Index | Old Index