[openssl-dev] [openssl.org #3967] Assert hit in the latest 1.0.2d code

Praveen Kariyanahalli via RT rt at openssl.org
Wed Jul 29 20:30:22 UTC 2015


int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int
len, int create_empty_fragment)
        {
        unsigned char *p,*pseq;
        int i,mac_size,clear=0;
        int prefix_len = 0;
        SSL3_RECORD *wr;
        SSL3_BUFFER *wb;
        SSL_SESSION *sess;
        int bs;

        /* first check if there is a SSL3_BUFFER still being written
         * out.  This will happen with non blocking IO */
        if (s->s3->wbuf.left != 0)
                {
*                OPENSSL_assert(0); /* XDTLS:  want to see if we ever get
here */*
                return(ssl3_write_pending(s,type,buf,len));
                }



==================================


(gdb) frame 2
#2  0x00007ffff6d690d5 in do_dtls1_write (s=0x7ffff4fe5c10, type=23,
buf=0x7ffff4bdf010 "\005@\200", len=62, create_empty_fragment=0) at
d1_pkt.c:1505
1505            OPENSSL_assert(0);      /* XDTLS: want to see if we ever
get here */
(gdb) p s->s3->wbuf
$1 = {buf = 0x7ffff36f6010 "\027\376\375", len = 17584, offset = 0, left =
99}
(gdb)


====================================


We seem to hit this assert with the latest code.  Our sockets are all in
non-blocking fashion. I dont see this assert in the previous releases.

Can somebody throw more light on to this ? It is urgent. As we are not able
to migrate to this version because of this regression.

Thanks in Advance
-Praveen

-------------- next part --------------
_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod


More information about the openssl-dev mailing list