On Sat, 27 Nov 1999, Goetz Babin-Ebell wrote:

> We should fix this by using vsnprintf() instead of vsprintf().
> (and snprintf instead of sprintf)
> 
> But on some systems there is no (v)snprintf.
> There we must use (v)sprintf().
> (And hope this will be fixed soon...)

OpenSSL could (and probably should) include their own versions of these
for platforms without the capability in their native libc. The ones in the
*BSD libcs should be adequate (license-compatible, etc).

> int BIO_printf (BIO *bio, ...)
>         {
>         va_list args;
>         char *format;
>         int ret;
>         MS_STATIC char hugebuf[1024*2]; /* 10k in one chunk is the limit */

Hmm, isn't this comment wrong? 1024*2*sizeof(char) = 2k, not 10k.

Kris

----
Just remember, as you celebrate Thanksgiving with your family feasts of
turkey, cranberries, stuffing, gravy, mashed potatoes, squash, corn,
cornbread, apples, pickles, dumplings, fish, orangutans, fruitbats,
breakfast cereals, and so forth, to keep in mind the true reason for the
season: The birth of Santa.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to