Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!dftsrv!iris613!stailey From: stailey@iris613.gsfc.nasa.gov (Ken Stailey) Newsgroups: comp.os.minix Subject: ST 1.5.0 strlen bug Summary: strlen((char *)NULL) == core dump Keywords: bugs ST NULL Message-ID: <943@dftsrv.gsfc.nasa.gov> Date: 19 Feb 90 04:51:48 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: stailey@iris613.UUCP (Ken Stailey) Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 12 The strlen distributed with ST 1.5.0 will core dump if it is passed a NULL pointer. I ran across this when I brought up the nroff clone "ro" on the ST. You can fix this by putting in an explicit test for mem location zero at the top i.e. if (c == (char *)NULL) return 0; INET stailey@iris613.gsfc.nasa.gov UUCP {backbone}!dftsrv!iris613!stailey