Matt -

I have not forgot about this.... I can't find the machine I wrote the
code on (my place probably looks a lot like your place - different
computers and laptops with different OSes all over the place).

Looking at the return values, I don't believe Test 3 should have failed.

Also, add a test case for:

    const char *label="";

That should not fail either, but it will (IIRC).

Jeff

On Wed, May 14, 2014 at 7:20 PM, Matt Caswell via RT <[email protected]> wrote:
> Hi Jeff
>
> Hmmm, I cannot reproduce this. Using the attached as a test case I see the
> following output (i.e. no crashes):
>
> Test one
> Return code 0
> Test two
> <NULL> 1 (0x1)
> Return code 1
> Test three
> Return code 0
> Test four
> 1 (0x1)
> Return code 1
>
> The NULL bio should be checked ultimately in BIO_write before an attempt is
> made to use it:
>
> int BIO_write(BIO *b, const void *in, int inl)
> {
> int i;
> long (*cb)(BIO *,int,const char *,int,long,long);
>
> if (b == NULL)
> return(0);
>
> I checked this on master, and 1.0.1.
>
> Please can you confirm which platform and release you are using.
>
> Thanks
>
> Matt
>


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

Reply via email to