ssl/s2_pkt.c:190: error: INTEGER_OVERFLOW_L2
  ([0, 32769] - [-oo, 1]):unsigned32 by call to `read_n`.
Showing all 7 steps of the trace


ssl/s2_pkt.c:127:1: Parameter `s->s2->rbuf_left`
125.    * This routine will return 0 to len bytes, decrypted etc if required.
126.    */
127. > static int ssl2_read_internal(SSL *s, void *buf, int len, int peek)
128.   	{
129.   	int n;

ssl/s2_pkt.c:190:6: Call
188.   		else
189.   			{
190.   			n=read_n(s,2,SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER+2,0);
            ^
191.   			if (n <= 0) return(n); /* error or non-blocking */
192.   			}

ssl/s2_pkt.c:314:1: <LHS trace>
312.   	}
313.   
314. > static int read_n(SSL *s, unsigned int n, unsigned int max,
315.   	     unsigned int extend)
316.   	{

ssl/s2_pkt.c:314:1: Parameter `max`
  312.   	}
  313.   
  314. > static int read_n(SSL *s, unsigned int n, unsigned int max,
  315.   	     unsigned int extend)
  316.   	{

ssl/s2_pkt.c:314:1: <RHS trace>
312.   	}
313.   
314. > static int read_n(SSL *s, unsigned int n, unsigned int max,
315.   	     unsigned int extend)
316.   	{

ssl/s2_pkt.c:314:1: Parameter `n`
  312.   	}
  313.   
  314. > static int read_n(SSL *s, unsigned int n, unsigned int max,
  315.   	     unsigned int extend)
  316.   	{

ssl/s2_pkt.c:375:6: Binary operation: ([0, 32769] - [-oo, 1]):unsigned32 by call to `read_n` 
  373.   			{
  374.   			s->rwstate=SSL_READING;
  375.   			i=BIO_read(s->rbio,(char *)&(s->s2->rbuf[off+newb]),
              ^
  376.   				max-newb);
  377.   			}
