Home | History | Annotate | only in /src/usr.sbin/mrinfo
History log of /src/usr.sbin/mrinfo
RevisionDateAuthorComments
 1.12 03-Jun-2023  lukem bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.11 06-Sep-2020  mrg add support for new GCC 9 warnings that may be too much to fix
right now. new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree. mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it. (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.) clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
 1.10 28-May-2007  tls Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.9 05-Mar-2003  wiz Move back here from gnu/dist/mrinfo now that mrouted license is cleared.
 1.8 01-Oct-2002  itojun move mbone tools out of basesrc, as they use part of mrouted
 1.7 01-Oct-2002  itojun fix .PATH to mrouted
 1.6 25-Oct-1997  lukem branches: 1.6.10; 1.6.12;
use CPPFLAGS instead of CFLAGS
 1.5 08-May-1997  gwr branches: 1.5.2;
Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
 1.4 06-May-1997  gwr Use .PATH.c: ...
 1.3 03-Oct-1995  thorpej New-style RCS ids.
 1.2 13-Aug-1995  mycroft Install this setuid root.
 1.1 01-Jun-1995  mycroft Update to multicast 3.5.
 1.5.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.6.12.1 07-Dec-2002  he Pull up file removal (requested by itojun in tickets #886, #887, #888):
Move mrouted out of basesrc, as it carries a non-BSD
license.
[itojun, tickets #886, #887, #888]
 1.6.10.1 01-Oct-2002  itojun Move mrouted out of basesrc, as it carries non-BSD license.
Agreed w/ core. Update license terms for rsrr.*, via openbsd.

(itojun)
 1.9 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.8 31-Mar-2003  perry treashold->threshold, from Igor Sobrado in PR misc/20740
 1.7 05-Mar-2003  wiz Add license, from OpenBSD.
 1.6 05-Mar-2003  wiz Move back here from gnu/dist/mrinfo now that mrouted license is cleared.
 1.5 01-Oct-2002  itojun move mbone tools out of basesrc, as they use part of mrouted
 1.4 08-Feb-2002  ross branches: 1.4.2;
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.3 19-Jan-2002  wiz Whitespace nits.
 1.2 03-Oct-1995  thorpej branches: 1.2.16;
New-style RCS ids.
 1.1 01-Jun-1995  mycroft Update to multicast 3.5.
 1.2.16.1 01-Oct-2002  itojun Move mrouted out of basesrc, as it carries non-BSD license.
Agreed w/ core. Update license terms for rsrr.*, via openbsd.

(itojun)
 1.4.2.1 07-Dec-2002  he Pull up file removal (requested by itojun in tickets #886, #887, #888):
Move mrouted out of basesrc, as it carries a non-BSD
license.
[itojun, tickets #886, #887, #888]
 1.30 17-Nov-2016  shm Add couple FALLTHROUGHs CIDs: 976559, 976560, 976561

No functional change.
 1.29 31-Aug-2011  joerg branches: 1.29.24;
Use __dead
 1.28 22-Jun-2011  mrg fix the length argument to a memcpy() to refer to the size of the
destination, not the size of the pointer. real bug on 64 bit platforms.
 1.27 17-Apr-2009  lukem Fix WARNS=4 issues (-Wsign-compare -Wcast-qual)
 1.26 22-Feb-2007  hubertf branches: 1.26.20;
That one needs ctype.h, too (which was removed from the mrouted/defs.h
file for cleanup earlier today)
 1.25 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.24 30-Oct-2004  dsl Add (unsigned char) cast to ctype functions
 1.23 05-Jan-2004  jmmv Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.22 16-May-2003  dsl Match latest mouted code
 1.21 16-May-2003  itojun avoid possible buffer overruns - strlcpy, snprintf
 1.20 05-Mar-2003  wiz Move back here from gnu/dist/mrinfo now that mrouted license is cleared.
 1.19 01-Oct-2002  itojun move mbone tools out of basesrc, as they use part of mrouted
 1.18 23-Sep-2002  mycroft null commit
 1.17 23-Sep-2002  itojun poll.h, not sys/poll.h
 1.16 19-Sep-2002  mycroft select() -> poll(), nanosleep()
 1.15 08-Aug-2002  itojun fix an exploitable fd_set overflow in mrinfo(8). drop root priv earlier.
do not use generated printf format string. from xs@kittenz.org
 1.14 14-Jul-2002  wiz Unifdef __STDC__. Remove __P() and register. ANSIfy.
 1.13 02-Jun-2002  itojun missing memset() for sockaddr. from deraadt
 1.12 24-Sep-2001  wiz branches: 1.12.2;
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
 1.11 01-Aug-2001  itojun updated copyright notice from Xerox. via openbsd
 1.10 06-Apr-2001  wiz Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
 1.9 12-Oct-2000  augustss Make it compile after format string changes.
 1.8 11-Oct-2000  is More format string cleanups by sommerfeld.
 1.7 04-Jul-1998  mrg branches: 1.7.2; 1.7.10;
use destination's size in 2 memcpy calls.
 1.6 09-May-1998  kleink Use strerror(3) instead of sys_errlist and sys_nerr.
 1.5 17-Oct-1997  lukem WARNSify
 1.4 10-Dec-1995  mycroft Update to mrouted 3.8.
 1.3 03-Oct-1995  thorpej New-style RCS ids.
 1.2 07-Jun-1995  cgd needs string.h
 1.1 01-Jun-1995  mycroft Update to multicast 3.5.
 1.7.10.3 01-Oct-2002  itojun Move mrouted out of basesrc, as it carries non-BSD license.
Agreed w/ core. Update license terms for rsrr.*, via openbsd.

(itojun)
 1.7.10.2 04-Sep-2002  itojun usr.sbin/mrinfo/mrinfo.c 1.15 (itojun)

fix an exploitable fd_set overflow in mrinfo(8). drop root priv earlier.
do not use generated printf format string. from xs@kittenz.org
 1.7.10.1 17-Oct-2000  tv Pullup usr.sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.7.2.2 19-Oct-2000  he Pull up revision 1.9 (requested by he):
Add ``const'' at appropriate places to make it compile again.
 1.7.2.1 19-Oct-2000  he Pull up revision 1.8 (requested by he):
Format string cleanup.
 1.12.2.3 07-Dec-2002  he Pull up file removal (requested by itojun in tickets #886, #887, #888):
Move mrouted out of basesrc, as it carries a non-BSD
license.
[itojun, tickets #886, #887, #888]
 1.12.2.2 09-Aug-2002  lukem Pull up revision 1.15 (requested by itojun in ticket #647):
fix an exploitable fd_set overflow in mrinfo(8). drop root priv earlier.
do not use generated printf format string. from xs@kittenz.org
 1.12.2.1 04-Jun-2002  lukem Pull up revision 1.13 (requested by itojun in ticket #140):
missing memset() for sockaddr. from deraadt
 1.26.20.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.29.24.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)

RSS XML Feed