head 1.2; access; symbols pkgsrc-2015Q1:1.1.0.62 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.60 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.58 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.56 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.54 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.52 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.50 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.48 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.46 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.44 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.42 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.40 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.38 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.36 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.34 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.32 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.30 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.28 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.26 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.24 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.22 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.20 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.18 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.16 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.14 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.12 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.10 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.8 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.6 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.4 pkgsrc-2008Q1:1.1.0.2; locks; strict; comment @# @; 1.2 date 2015.04.30.10.43.54; author markd; state dead; branches; next 1.1; commitid Qi19hTbn97F9pBjy; 1.1 date 2008.05.05.22.48.22; author tonnerre; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2008.05.05.22.48.22; author rtr; state dead; branches; next 1.1.2.2; 1.1.2.2 date 2008.05.08.14.21.48; author rtr; state Exp; branches; next ; desc @@ 1.2 log @Convert to meta package. The only remaining files in the PLIST were symlinks in bin for commands that didn't actually work. Plus some related documentation. @ text @$NetBSD: patch-am,v 1.1 2008/05/05 22:48:22 tonnerre Exp $ --- texk/dvipsk/hps.c +++ texk/dvipsk/hps.c @@@@ -441,19 +441,28 @@@@ int href_name_match P2C(char *, h, char void stamp_hps P1C(Hps_link *, pl) { - char tmpbuf[200] ; + char * tmpbuf; if (pl == NULL) { - error("Null pointer, oh no!") ; + error("stamp_hps: null pl pointer, oh no!") ; return ; - } else { - /* print out the proper pdfm with local page info only - * target info will be in the target dictionary */ - (void)sprintf(tmpbuf, - " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, - pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], - pl->color[0], pl->color[1], pl->color[2]) ; - cmdout(tmpbuf) ; - } + } + if(pl->title == NULL) { + error("stamp_hps: null pl->title pointer, oh no!") ; + return ; + } + + tmpbuf = (char *) xmalloc(strlen(pl->title)+200); + + /* print out the proper pdfm with local page info only + * target info will be in the target dictionary */ + (void)sprintf(tmpbuf, + " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", + pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, + pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], + pl->color[0], pl->color[1], pl->color[2]) ; + cmdout(tmpbuf) ; + free(tmpbuf); + } @@@@ -462,18 +471,27 @@@@ void stamp_hps P1C(Hps_link *, pl) */ void stamp_external P2C(char *, s, Hps_link *, pl) { - char tmpbuf[200]; + char *tmpbuf; if (pl == NULL) { - error("Null pointer, oh no!") ; + error("stamp_external: null pl pointer, oh no!") ; return ; - } else { - /* print out the proper pdfm with local page info only - * target info will be in the target dictionary */ - (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, - pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], - pl->color[0], pl->color[1], pl->color[2], s) ; - cmdout(tmpbuf) ; - } + } + + if (s == NULL) { + error("stamp_external: null s pointer, oh no!") ; + return ; + } + + tmpbuf = (char *) xmalloc(strlen(s) + 200); + + /* print out the proper pdfm with local page info only + * target info will be in the target dictionary */ + (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", + pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, + pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], + pl->color[0], pl->color[1], pl->color[2], s) ; + cmdout(tmpbuf) ; + free(tmpbuf); } void finish_hps P1H(void) { @ 1.1 log @Fix various buffer overflow vulnerabilities in dvips and dviljk, and an insecure temp file creation vulnerability in dvips. Fixes CVE-2007-5935, CVE-2007-5936 and CVE-2007-5937. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.1.2.1 log @file patch-am was added on branch pkgsrc-2008Q1 on 2008-05-08 14:21:48 +0000 @ text @d1 82 @ 1.1.2.2 log @pullup ticket #2362 - requested by tonnerre teTeX3-bin: fixes security vulnerability revisions pulled up: - pkgsrc/print/teTeX3-bin/Makefile 1.27 - pkgsrc/print/teTeX3-bin/distinfo 1.8,1.9 - pkgsrc/print/teTeX3-bin/patches/patch-am 1.1 - pkgsrc/print/teTeX3-bin/patches/patch-an 1.1 - pkgsrc/print/teTeX3-bin/patches/patch-at 1.1,1.2 - pkgsrc/print/teTeX3-bin/patches/patch-au 1.1 Module Name: pkgsrc Committed By: tonnerre Date: Mon May 5 22:48:22 UTC 2008 Modified Files: dule Name: pkgsrc Committed By: tonnerre Date: Tue May 6 09:24:20 UTC 2008 Modified Files: pkgsrc/print/teTeX3-bin: distinfo pkgsrc/print/teTeX3-bin/patches: patch-at Log Message: Remove RCSID from patch-at so it applies again pkgsrc/print/teTeX3-bin: Makefile distinfo Added Files: pkgsrc/print/teTeX3-bin/patches: patch-am patch-an patch-at patch-au Log Message: Fix various buffer overflow vulnerabilities in dvips and dviljk, and an insecure temp file creation vulnerability in dvips. Fixes CVE-2007-5935, CVE-2007-5936 and CVE-2007-5937. Bump PKGREVISION. ------------------------------------------------------------------------ Module Name: pkgsrc Committed By: tonnerre Date: Tue May 6 09:24:20 UTC 2008 Modified Files: pkgsrc/print/teTeX3-bin: distinfo pkgsrc/print/teTeX3-bin/patches: patch-at Log Message: Remove RCSID from patch-at so it applies again @ text @a0 82 $NetBSD: patch-am,v 1.1 2008/05/05 22:48:22 tonnerre Exp $ --- texk/dvipsk/hps.c +++ texk/dvipsk/hps.c @@@@ -441,19 +441,28 @@@@ int href_name_match P2C(char *, h, char void stamp_hps P1C(Hps_link *, pl) { - char tmpbuf[200] ; + char * tmpbuf; if (pl == NULL) { - error("Null pointer, oh no!") ; + error("stamp_hps: null pl pointer, oh no!") ; return ; - } else { - /* print out the proper pdfm with local page info only - * target info will be in the target dictionary */ - (void)sprintf(tmpbuf, - " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, - pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], - pl->color[0], pl->color[1], pl->color[2]) ; - cmdout(tmpbuf) ; - } + } + if(pl->title == NULL) { + error("stamp_hps: null pl->title pointer, oh no!") ; + return ; + } + + tmpbuf = (char *) xmalloc(strlen(pl->title)+200); + + /* print out the proper pdfm with local page info only + * target info will be in the target dictionary */ + (void)sprintf(tmpbuf, + " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", + pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, + pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], + pl->color[0], pl->color[1], pl->color[2]) ; + cmdout(tmpbuf) ; + free(tmpbuf); + } @@@@ -462,18 +471,27 @@@@ void stamp_hps P1C(Hps_link *, pl) */ void stamp_external P2C(char *, s, Hps_link *, pl) { - char tmpbuf[200]; + char *tmpbuf; if (pl == NULL) { - error("Null pointer, oh no!") ; + error("stamp_external: null pl pointer, oh no!") ; return ; - } else { - /* print out the proper pdfm with local page info only - * target info will be in the target dictionary */ - (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, - pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], - pl->color[0], pl->color[1], pl->color[2], s) ; - cmdout(tmpbuf) ; - } + } + + if (s == NULL) { + error("stamp_external: null s pointer, oh no!") ; + return ; + } + + tmpbuf = (char *) xmalloc(strlen(s) + 200); + + /* print out the proper pdfm with local page info only + * target info will be in the target dictionary */ + (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", + pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, + pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], + pl->color[0], pl->color[1], pl->color[2], s) ; + cmdout(tmpbuf) ; + free(tmpbuf); } void finish_hps P1H(void) { @