[Courses] [C] interesting compiler output

Ganesh Swami ganesh at rapidtech.bc.ca
Thu Dec 12 19:20:24 EST 2002


Morgon Kanter wanted us to know:

> : the `gets' function is dangerous and should not be used
> 
> Could someone please enlighten me to how the gets function is dangerous? :)

gets() is the reason for most buffer overflow problems, and can be a
security loophole. 

Don't use gets(). I wouldnt be surprised to see gets() banned on
OpenBSD. :)

	
	Ganesh


> Morgon
> --

-- 
:       _ /~\'_
         (o o)
=====oooO==U==Oooo================[Ganesh Swami]==========
hAS ANYONE SEEN MY cAPSLOCK KEY?




More information about the Courses mailing list