Erik de Castro Lopo wrote:

> Well a trivial example:
> 
>     int pos,  array [100] ;
>     read (fd, &pos, sizeof (pos));    
>     array [pos] = 0 ;

To be specific, the problem above is using the value of pos without
validating it first.

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
The Earth is around 70% water. Fish rule the seas.
Humans are over 90% water. It's only a matter of time.
_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to