Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site maynard.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!talcott!wjh12!maynard!campbell From: campbell@maynard.UUCP (Larry Campbell) Newsgroups: net.news,net.unix-wizards Subject: Re: Bug in expire: uninitialized pointer (FULLSYSNAME) Message-ID: <171@maynard.UUCP> Date: Thu, 17-Oct-85 19:24:59 EDT Article-I.D.: maynard.171 Posted: Thu Oct 17 19:24:59 1985 Date-Received: Sat, 19-Oct-85 07:22:52 EDT References: <923@turtlevax.UUCP> Distribution: net Organization: The Boston Software Works Inc., Maynard, MA Lines: 16 Xref: watmath net.news:4084 net.unix-wizards:15313 > I'm having problems porting news 2.10.2 to the 68000, which barfs on > NULL pointers. Expire core dumps on me, when in hread() it tries to > copy (via strcpy()) FULLSYSNAME to bfr. At this point, FULLSYSNAME is > NULL (uninitialized), so the call is essentially strcpy(bfr, 0). I > suspect that this bug is pervasive throughout the code. > > Has anyone made the appropriate modifications to avoid this problem? > Could you send me the fixes, or pointers (no pun intended) to where I > can get working code? > -- > Ken Turkowski @ (CADLINC --> CIMLINC), Menlo Park, CA > UUCP: {amd,decwrl,hplabs,seismo,spar}!turtlevax!ken > ARPA: turtlevax!ken@DECWRL.ARPA Why not just write and link with a version of strcpy that doesn't try to dereference null pointers?