freebsd-nq/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 Don't call _doprnt, which doesn't exist; use vfprintf. 1995-01-23 22:53:12 +00:00
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 Library for f2c (part 2 of 2) 1994-10-26 18:17:41 +00:00
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 Library for f2c. (part 1 of 2) 1994-10-26 18:15:35 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
librpc Make up for the fact that rpc headers are now installed from include. 1994-08-05 01:59:40 +00:00
librpcsvc If we are going to set the OBJS target, don't add to the old target. This 1995-03-04 17:39:24 +00:00
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 Correct the man page extent. 1994-08-08 19:26:23 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
msun Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
ncurses/ncurses Bump major number instead of minor 1995-05-08 16:08:49 +00:00
rpcsvc Makefile to build librpcsvc. (All sources automatically generated.) 1994-08-07 23:21:08 +00:00
Makefile Add libftp to list of targets. 1995-04-25 15:08:52 +00:00
Makefile.inc From 1.1.5: define default shared library versions. For 2.0, use version 1994-08-04 22:44:00 +00:00