ssl/record/rec_layer_s3.c:1164: error: INTEGER_OVERFLOW_L2
  ([0, max(0, `s->ctx->sessions->num_items`)] - 1):unsigned64 by call to `ssl3_get_record`.
Showing all 15 steps of the trace


ssl/record/rec_layer_s3.c:1084:1: Parameter `s->ctx->sessions->num_items`
1082.    *             none of our business
1083.    */
1084. > int ssl3_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf,
1085.                       int len, int peek)
1086.   {

ssl/record/rec_layer_s3.c:1164:19: Call
1162.           /* get new records if necessary */
1163.           if (num_recs == 0) {
1164.               ret = ssl3_get_record(s);
                          ^
1165.               if (ret <= 0)
1166.                   return (ret);

ssl/record/ssl3_record.c:227:1: Parameter `s->ctx->sessions->num_items`
  225.    */
  226.   /* used only by ssl3_read_bytes */
  227. > int ssl3_get_record(SSL *s)
  228.   {
  229.       int ssl_major, ssl_minor, al;

ssl/record/ssl3_record.c:601:5: Call
  599.   
  600.    f_err:
  601.       ssl3_send_alert(s, SSL3_AL_FATAL, al);
             ^
  602.    err:
  603.       return ret;

ssl/s3_msg.c:165:1: Parameter `s->ctx->sessions->num_items`
    163.   }
    164.   
    165. > int ssl3_send_alert(SSL *s, int level, int desc)
    166.   {
    167.       /* Map tls/ssl alert value to correct one */

ssl/s3_msg.c:176:9: Call
    174.       /* If a fatal one, remove from cache */
    175.       if ((level == SSL3_AL_FATAL) && (s->session != NULL))
    176.           SSL_CTX_remove_session(s->ctx, s->session);
                   ^
    177.   
    178.       s->s3->alert_dispatch = 1;

ssl/ssl_sess.c:790:1: Parameter `ctx->sessions->num_items`
      788.   }
      789.   
      790. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      791.   {
      792.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:792:12: Call
      790.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      791.   {
      792.       return remove_session_lock(ctx, c, 1);
                        ^
      793.   }
      794.   

ssl/ssl_sess.c:795:1: Parameter `ctx->sessions->num_items`
        793.   }
        794.   
        795. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        796.   {
        797.       SSL_SESSION *r;

ssl/ssl_sess.c:805:17: Call
        803.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
        804.               ret = 1;
        805.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                               ^
        806.               SSL_SESSION_list_remove(ctx, c);
        807.           }

ssl/ssl_locl.h:684:1: Parameter `lh->num_items`
          682.   };
          683.   
          684. > DEFINE_LHASH_OF(SSL_SESSION);
          685.   /* Needed in ssl_cert.c */
          686.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:684:1: Call
          682.   };
          683.   
          684. > DEFINE_LHASH_OF(SSL_SESSION);
          685.   /* Needed in ssl_cert.c */
          686.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:188:1: <LHS trace>
186.   }
187.   
188. > void *lh_delete(_LHASH *lh, const void *data)
189.   {
190.       unsigned long hash;

crypto/lhash/lhash.c:188:1: Parameter `lh->num_items`
            186.   }
            187.   
            188. > void *lh_delete(_LHASH *lh, const void *data)
            189.   {
            190.       unsigned long hash;

crypto/lhash/lhash.c:208:5: Binary operation: ([0, max(0, s->ctx->sessions->num_items)] - 1):unsigned64 by call to `ssl3_get_record` 
            206.       }
            207.   
            208.       lh->num_items--;
                       ^
            209.       if ((lh->num_nodes > MIN_NODES) &&
            210.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
