Advent4 patch, second try

Luis Javier Merino ljmerino at
Thu Sep 27 10:41:34 CEST 2007

On 9/26/07, Pierre Riteau <kineox at> wrote:
> Actually strl* functions are an answer to these problems without
> having to use dynamically allocated buffers, but Ulrich Drepper is
> responsible for them not being included in glibc while it is available
> on all BSDs, Solaris and Mac OS X.

But, strl* functions can truncate data, which sometimes leads to
buffer overflows, and are not on any standard, which means you have to
include your own versions anyway if you intend to support systems like
cygwin, beos, hpux, irix, etc...

Besides, a good API for dynamically allocated buffers is at least as
easy to use as str* functions.

Of course, strl* are the best choice for fixing buffer overflows.

More information about the dslinux-devel mailing list