[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Buffer Overflows (was Re: (no subject))
Moshe Zadka <moshez@math.huji.ac.il> writes:
> If you must code in C, at least use the safe routines in glib (for
> example g_strdup_sprintf) rather then using unsafe functions such as
> sprintf.
This might be not feasible if you need to write portable code
(nor will be snprintf(), which is non-standard, IIRC). You need
to get into the habit of putting checks in your code to prevent
buffer overflows.
--
Oleg Goldshmidt | BLOOMBERG L.P. (BFM) | oleg@NOSPAM.bfr.co.il
"... We work by wit, and not by witchcraft;
And wit depends on dilatory time." - W. Shakespeare.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il