retiring gets(3)

Usenet file owner usenet at cps3xx.UUCP
Wed Nov 9 22:37:41 AEST 1988


in article <1988Nov8.054845.23998 at utstat.uucp>, geoff at utstat.uucp (Geoff Collyer) says:
$ 
$ The recent exposure of the security bug in the 4BSD fingerd caused by
$ use of gets(3) reminded me that gets is a bug waiting to happen and
$ should be stamped out. 

This may be a naive question, or perhaps I haven't followed the right
stories, but what is the problem with using gets versus fgets?

John H. Lawitzke      UUCP: ...rutgers!mailrus!frith!fciiho!jhl
Michigan Farm Bureau        ...decvax!purdue!mailrus!frith!fciiho!jhl
Insurance Group             ...uunet!frith!jhl



More information about the Comp.lang.c mailing list