[net.bugs.uucp] bug in chkpth.c re:max lines in USERFILE

tim@dciem.UUCP (Tim Pointing) (03/23/84)

:*(	line-eater's lunch

	In the version of uucp that we are running (but not in 4.2)
there is a bug in chkpth.c with regards to the in-core structure which
hold the contents of /usr/lib/uucp/USERFILE. The pointer into the
Upt array of userpath structures is allowed to go as far as
&Upt[MAXUSERS-1]  (#define MAXUSERS 20) whereas Upt is declared as
struct userpath Upt[15];   Sites that add a 16'th or 17'th
line to the USERFILE will find uucico dying very quietly before or
after sending the first file. (We were actually quite lucky and were
running quite happily with 16 lines in USERFILE!)
	The fix is, of course, to change the declaration to
struct userpath Upt[MAXUSERS];  or, alternatively, modify chkpth to
dynamically allocate space for the sructure as 4.2 does.
-- 
	Tim Pointing, DCIEM
	{allegra,ubc-vision,linus,ihnp4,uw-beaver,floyd}!utcsrgv!dciem!tim
or	{allegra,ihnp4,linus,decvax}!utzoo!dciem!tim