freebsd-skq/lib
Bill Paul e0ee807b3d Fix for a potential problem reported by a user I bumped into on IRC
last night:

_gr_breakout_yp() doesn't check for badly formatted NIS group entries.
For example, a bogus entry like this:

bootp::user1,user2,user3

will lead to a null pointer dereference and a SEGV (note that the GID
field is missing -- this results in one of the strsep(&result, ":")
returning NULL). The symtpom of this problem is programs dumping
core left and right the moment you add a + entry to /etc/group.
Note that while this is similar to an earlier bug, it's caused by a
different set of circumstances.

The fix is to check for the NULL pointers and have _gr_breakout_yp()
punt and return a failure code if it catches one. This is more or
less the behavior of SunOS: if a bad NIS group entry is encountered,
it's silently ignored. I don't think our standard (non-NIS) group
parsing code behaves the same way. It doesn't crash though, so I'm
citing the 'it ain't broken, don't fix it' rule and leaving it alone.

I'll probably have to add similar checks to _pw_breakout_yp() in
getpwent.c to ward off the same problems. It's rare that bad NIS
map entries like this occur, but we should handle them gracefully
when they do.
1995-06-26 14:59:46 +00:00
..
csu/i386 Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libc Fix for a potential problem reported by a user I bumped into on IRC 1995-06-26 14:59:46 +00:00
libcom_err
libcompat Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcrypt Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcurses Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libdisk Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
libedit Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libf2c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libF77
libforms Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libftp Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libI77
libkvm 41 headers must be implicitly included and one more (<sys/param.h>) must 1995-06-25 03:35:49 +00:00
libm Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libmd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libmytinfo Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libncurses Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libpam/modules Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
libpcap Fix handling NULL-encapsulated interfaces (lo & tun) 1995-06-22 16:56:00 +00:00
libresolv
librpc
librpcsvc
libscsi Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libskey Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
libss Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libtelnet Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libterm
libtermcap Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libutil Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
liby
msun Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
ncurses/ncurses
rpcsvc
Makefile
Makefile.inc