home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!nigel.msen.com!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!btc30679
- From: thoth@uiuc.edu (Ben Cox)
- Subject: Re: mtools, compiling problems
- References: <5561@umriscc.isc.umr.edu> <1992Jul29.233928.9415@muddcs.claremont.edu>
- Message-ID: <Bs6rrp.Isz@news.cso.uiuc.edu>
- Originator: btc30679@uxa.cso.uiuc.edu
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: thoth@uiuc.edu (Ben Cox)
- Organization: University of Illinois at Urbana
- Date: Thu, 30 Jul 1992 05:11:48 GMT
- Lines: 18
-
- jwinstea@jarthur.claremont.edu (Jim Winstead Jr.) writes:
-
- >gets() is ANSI, that is why it *has* to remain in the library. gets()
- >is unsafe because you cannot limit the size of the string that it
- >reads - if you pass it an array of length 10, it will gladly write 100
- >characters to that array and end up overwriting other data, causing a
- >seg fault, or doing something else not very nice.
-
- For example, that's how Robert Morris' Internet Worm was spread.
-
- >Be glad the warning is displayed when linking, instead of at run-time
- >like it used to. That wasn't very nice. :)
-
- Yup. :-)
-
- --
- Ben Cox
- thoth@uiuc.edu
-