test/sslcorrupttest.c:251: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `SSL_write`.
Showing all 27 steps of the trace


test/sslcorrupttest.c:243:10: Call
241.       }
242.   
243.       if (!create_ssl_connection(server, client, SSL_ERROR_NONE)) {
                ^
244.           printf("Unable to create SSL connection\n");
245.           ERR_print_errors_fp(stdout);

test/ssltestlib.c:654:20: Call
  652.           err = SSL_ERROR_WANT_WRITE;
  653.           while (!clienterr && retc <= 0 && err == SSL_ERROR_WANT_WRITE) {
  654.               retc = SSL_connect(clientssl);
                            ^
  655.               if (retc <= 0)
  656.                   err = SSL_get_error(clientssl, retc);

ssl/ssl_lib.c:1469:1: Parameter `s->session_ctx->sessions->num_items`
    1467.   }
    1468.   
    1469. > int SSL_connect(SSL *s)
    1470.   {
    1471.       if (s->handshake_func == NULL) {

ssl/ssl_lib.c:1476:12: Call
    1474.       }
    1475.   
    1476.       return SSL_do_handshake(s);
                       ^
    1477.   }
    1478.   

ssl/ssl_lib.c:3245:1: Parameter `s->session_ctx->sessions->num_items`
      3243.   }
      3244.   
      3245. > int SSL_do_handshake(SSL *s)
      3246.   {
      3247.       int ret = 1;

test/ssltestlib.c:654:20: Call
  652.           err = SSL_ERROR_WANT_WRITE;
  653.           while (!clienterr && retc <= 0 && err == SSL_ERROR_WANT_WRITE) {
  654.               retc = SSL_connect(clientssl);
                            ^
  655.               if (retc <= 0)
  656.                   err = SSL_get_error(clientssl, retc);

ssl/ssl_lib.c:1469:1: Parameter `s->session_ctx->sessions->num_items`
    1467.   }
    1468.   
    1469. > int SSL_connect(SSL *s)
    1470.   {
    1471.       if (s->handshake_func == NULL) {

ssl/ssl_lib.c:1476:12: Call
    1474.       }
    1475.   
    1476.       return SSL_do_handshake(s);
                       ^
    1477.   }
    1478.   

ssl/ssl_lib.c:3245:1: Parameter `s->session_ctx->sessions->num_items`
      3243.   }
      3244.   
      3245. > int SSL_do_handshake(SSL *s)
      3246.   {
      3247.       int ret = 1;

test/sslcorrupttest.c:251:9: Call
249.       docorrupt = 1;
250.   
251.       if (SSL_write(client, junk, sizeof(junk)) < 0) {
               ^
252.           printf("Unable to SSL_write\n");
253.           ERR_print_errors_fp(stdout);

ssl/ssl_lib.c:1789:1: Parameter `s->session_ctx->sessions->num_items`
  1787.   }
  1788.   
  1789. > int SSL_write(SSL *s, const void *buf, int num)
  1790.   {
  1791.       int ret;

ssl/ssl_lib.c:1799:11: Call
  1797.       }
  1798.   
  1799.       ret = ssl_write_internal(s, buf, (size_t)num, &written);
                    ^
  1800.   
  1801.       /*

ssl/ssl_lib.c:1742:1: Parameter `s->session_ctx->sessions->num_items`
    1740.   }
    1741.   
    1742. > int ssl_write_internal(SSL *s, const void *buf, size_t num, size_t *written)
    1743.   {
    1744.       if (s->handshake_func == NULL) {

ssl/ssl_lib.c:1760:14: Call
    1758.            * normal data
    1759.            */
    1760.           if (!ssl_write_early_finish(s))
                         ^
    1761.               return 0;
    1762.       } else if (s->early_data_state == SSL_EARLY_DATA_CONNECT_RETRY

ssl/ssl_lib.c:1865:1: Parameter `s->session_ctx->sessions->num_items`
      1863.   }
      1864.   
      1865. > static int ssl_write_early_finish(SSL *s)
      1866.   {
      1867.       int ret;

ssl/ssl_lib.c:1875:11: Call
      1873.   
      1874.       s->early_data_state = SSL_EARLY_DATA_WRITING;
      1875.       ret = ssl3_send_alert(s, SSL3_AL_WARNING, SSL_AD_END_OF_EARLY_DATA);
                        ^
      1876.       if (ret <= 0) {
      1877.           s->early_data_state = SSL_EARLY_DATA_WRITE_RETRY;

ssl/s3_msg.c:63:1: Parameter `s->session_ctx->sessions->num_items`
        61.   }
        62.   
        63. > int ssl3_send_alert(SSL *s, int level, int desc)
        64.   {
        65.       /* Map tls/ssl alert value to correct one */

ssl/s3_msg.c:77:9: Call
        75.       /* If a fatal one, remove from cache */
        76.       if ((level == SSL3_AL_FATAL) && (s->session != NULL))
        77.           SSL_CTX_remove_session(s->session_ctx, s->session);
                      ^
        78.   
        79.       s->s3->alert_dispatch = 1;

ssl/ssl_sess.c:724:1: Parameter `ctx->sessions->num_items`
          722.   }
          723.   
          724. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
          725.   {
          726.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:726:12: Call
          724.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
          725.   {
          726.       return remove_session_lock(ctx, c, 1);
                            ^
          727.   }
          728.   

ssl/ssl_sess.c:729:1: Parameter `ctx->sessions->num_items`
            727.   }
            728.   
            729. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
            730.   {
            731.       SSL_SESSION *r;

ssl/ssl_sess.c:739:17: Call
            737.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
            738.               ret = 1;
            739.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                                   ^
            740.               SSL_SESSION_list_remove(ctx, c);
            741.           }

ssl/ssl_locl.h:688:1: Parameter `lh->num_items`
              686.   } CLIENTHELLO_MSG;
              687.   
              688. > DEFINE_LHASH_OF(SSL_SESSION);
              689.   /* Needed in ssl_cert.c */
              690.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:688:1: Call
              686.   } CLIENTHELLO_MSG;
              687.   
              688. > DEFINE_LHASH_OF(SSL_SESSION);
              689.   /* Needed in ssl_cert.c */
              690.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:103:1: <LHS trace>
101.   }
102.   
103. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
104.   {
105.       unsigned long hash;

crypto/lhash/lhash.c:103:1: Parameter `lh->num_items`
                101.   }
                102.   
                103. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
                104.   {
                105.       unsigned long hash;

crypto/lhash/lhash.c:123:5: Binary operation: ([0, +oo] - 1):unsigned64 by call to `SSL_write` 
                121.       }
                122.   
                123.       lh->num_items--;
                           ^
                124.       if ((lh->num_nodes > MIN_NODES) &&
                125.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
