head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.20 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.18 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.16 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.14 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.12 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.10 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.8 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.6 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.4 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.2 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.4.0.30 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.28 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.26 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.24 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.22 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.20 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.18 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.16 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.14 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.12 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.10 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.8 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.6 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.4 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.2 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2; locks; strict; comment @# @; 1.5 date 2008.03.25.13.44.00; author wiz; state dead; branches; next 1.4; 1.4 date 2004.06.15.18.44.57; author kristerw; state Exp; branches; next 1.3; 1.3 date 2004.06.01.21.50.37; author kristerw; state dead; branches; next 1.2; 1.2 date 2003.09.17.14.27.07; author jwise; state Exp; branches; next 1.1; 1.1 date 2003.09.16.18.15.28; author jwise; state Exp; branches; next ; desc @@ 1.5 log @Remove openssh+gssapi. It has security problems for a long time now. Removal was announced on pkgsrc-users on March 13. @ text @$NetBSD: patch-ai,v 1.4 2004/06/15 18:44:57 kristerw Exp $ Index: buffer.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/buffer.c,v retrieving revision 1.16 retrieving revision 1.18 diff -u -r1.16 -r1.18 --- buffer.c 26 Jun 2002 08:54:18 -0000 1.16 +++ buffer.c 16 Sep 2003 21:02:39 -0000 1.18 @@@@ -23,8 +23,11 @@@@ void buffer_init(Buffer *buffer) { - buffer->alloc = 4096; - buffer->buf = xmalloc(buffer->alloc); + const u_int len = 4096; + + buffer->alloc = 0; + buffer->buf = xmalloc(len); + buffer->alloc = len; buffer->offset = 0; buffer->end = 0; } @@@@ -34,8 +37,10 @@@@ void buffer_free(Buffer *buffer) { - memset(buffer->buf, 0, buffer->alloc); - xfree(buffer->buf); + if (buffer->alloc > 0) { + memset(buffer->buf, 0, buffer->alloc); + xfree(buffer->buf); + } } /* @@@@ -69,6 +74,7 @@@@ void * buffer_append_space(Buffer *buffer, u_int len) { + u_int newlen; void *p; if (len > 0x100000) @@@@ -98,11 +104,13 @@@@ goto restart; } /* Increase the size of the buffer and retry. */ - buffer->alloc += len + 32768; - if (buffer->alloc > 0xa00000) + + newlen = buffer->alloc + len + 32768; + if (newlen > 0xa00000) fatal("buffer_append_space: alloc %u not supported", - buffer->alloc); - buffer->buf = xrealloc(buffer->buf, buffer->alloc); + newlen); + buffer->buf = xrealloc(buffer->buf, newlen); + buffer->alloc = newlen; goto restart; /* NOTREACHED */ } @ 1.4 log @Resurrect openssh+gssapi per request of jwise@@. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.2 2003/09/17 14:27:07 jwise Exp $ @ 1.3 log @Remove obsolete packages, per discussion on tech-pkg. @ text @@ 1.2 log @Update for _new_ new OpenSSH patch, bump pkgrevision. ``Oops, they did it again.'' @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Apply security patch for OpenSSH-3.6.1p2 recently released by openssh team. PKGREVISION bump, and BROKEN= removed. While there, fix Solaris short pkg name. @ text @d1 37 a37 3 --- buffer.c.orig 2003-09-16 13:45:48.000000000 -0400 +++ buffer.c 2003-09-16 13:50:49.000000000 -0400 @@@@ -69,6 +69,7 @@@@ d45 1 a45 1 @@@@ -98,11 +99,13 @@@@ d51 1 a51 1 + d57 1 a57 1 + newlen); @