Date: Fri, 9 May 2003 02:11:27 -0700 (PDT) From: Robert Drehmel <robert@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/sockstat sockstat.c Message-ID: <200305090911.h499BRdY038848@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
robert 2003/05/09 02:11:27 PDT FreeBSD src repository Modified files: usr.bin/sockstat sockstat.c Log: To reserve space for 65536 bits, allocate 65536 / (sizeof(int) * CHAR_BITS) `int's instead of 65536 / (sizeof(int) * CHAR_BITS) bytes to avoid a possible segmentation fault if ports above 16383 are specified via the -p option on a platform with 4 byte wide ints. Approved by: re (bmah) Reported by: Marco Wertejuk <wertejuk@mwcis.com> Revision Changes Path 1.7 +1 -1 src/usr.bin/sockstat/sockstat.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305090911.h499BRdY038848>