There is an error in the bio/b_print.c/_dopr() function which used to be called 
by the
BIO_vprintf(). If the buffer is not NULL and the length of the
data needed to print is the multiple of 1024, than the last byte will be lost.

I think that the following block at the end of _dopr() should be called only in 
case of the buffer is NULL:

...
        *truncated = (currlen > *maxlen - 1);
        if (*truncated)        currlen = *maxlen - 1;
...

There is no reason to truncate anything if the dynamic buffer is used.

-cipo



_______________________________________________________________________
Ezt az e-mailt virus- es SPAM-szuresnek vetettuk ala a filter:mail MessageLabs 
rendszerrel. Tovabbi informacio: http://www.filtermax.hu

This email has been scanned for viruses and SPAM by the filter:mail MessageLabs 
System. More information: http://www.filtermax.hu 
________________________________________________________________________________________

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

Reply via email to