ssl/s3_clnt.c:1071: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 32):unsigned64 by call to `PACKET_copy_bytes`.
Showing all 14 steps of the trace


ssl/s3_clnt.c:974:10: Call
972.       }
973.   
974.       if (!PACKET_buf_init(&pkt, s->init_msg, n)) {
                ^
975.           al = SSL_AD_INTERNAL_ERROR;
976.           SSLerr(SSL_F_SSL3_GET_SERVER_HELLO, ERR_R_INTERNAL_ERROR);

ssl/packet_locl.h:110:8: Parameter `pkt->remaining`
  108.    * is being used.
  109.    */
  110.   __owur static inline int PACKET_buf_init(PACKET *pkt, unsigned char *buf,
                ^
  111.                                            size_t len)
  112.   {

ssl/s3_clnt.c:983:14: Call
981.           unsigned int sversion;
982.   
983.           if (!PACKET_get_net_2(&pkt, &sversion)) {
                    ^
984.               al = SSL_AD_DECODE_ERROR;
985.               SSLerr(SSL_F_SSL3_GET_SERVER_HELLO, SSL_R_LENGTH_MISMATCH);

ssl/packet_locl.h:188:8: Parameter `pkt->remaining`
  186.   /* Equivalent of n2s */
  187.   /* Get 2 bytes in network order from |pkt| and store the value in |*data| */
  188.   __owur static inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data)
                ^
  189.   {
  190.       if (!PACKET_peek_net_2(pkt, data))

ssl/packet_locl.h:190:10: Call
  188.   __owur static inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data)
  189.   {
  190.       if (!PACKET_peek_net_2(pkt, data))
                  ^
  191.           return 0;
  192.   

ssl/packet_locl.h:174:8: Parameter `pkt->remaining`
    172.    * |*data|
    173.    */
    174.   __owur static inline int PACKET_peek_net_2(const PACKET *pkt,
                  ^
    175.                                              unsigned int *data)
    176.   {

ssl/s3_clnt.c:1071:10: Call
1069.       /* load the server hello data */
1070.       /* load the server random */
1071.       if (!PACKET_copy_bytes(&pkt, s->s3->server_random, SSL3_RANDOM_SIZE)) {
                 ^
1072.           al = SSL_AD_DECODE_ERROR;
1073.           SSLerr(SSL_F_SSL3_GET_SERVER_HELLO, SSL_R_LENGTH_MISMATCH);

ssl/packet_locl.h:359:8: Parameter `len`
  357.    * The caller is responsible for ensuring that |data| can hold |len| bytes.
  358.    */
  359.   __owur static inline int PACKET_copy_bytes(PACKET *pkt, unsigned char *data,
                ^
  360.                                              size_t len)
  361.   {

ssl/packet_locl.h:365:5: Call
  363.           return 0;
  364.   
  365.       packet_forward(pkt, len);
             ^
  366.   
  367.       return 1;

ssl/packet_locl.h:80:1: <LHS trace>
78.   
79.   /* Internal unchecked shorthand; don't use outside this file. */
80. > static inline void packet_forward(PACKET *pkt, size_t len)
81.   {
82.       pkt->curr += len;

ssl/packet_locl.h:80:1: Parameter `pkt->remaining`
    78.   
    79.   /* Internal unchecked shorthand; don't use outside this file. */
    80. > static inline void packet_forward(PACKET *pkt, size_t len)
    81.   {
    82.       pkt->curr += len;

ssl/packet_locl.h:80:1: <RHS trace>
78.   
79.   /* Internal unchecked shorthand; don't use outside this file. */
80. > static inline void packet_forward(PACKET *pkt, size_t len)
81.   {
82.       pkt->curr += len;

ssl/packet_locl.h:80:1: Parameter `len`
    78.   
    79.   /* Internal unchecked shorthand; don't use outside this file. */
    80. > static inline void packet_forward(PACKET *pkt, size_t len)
    81.   {
    82.       pkt->curr += len;

ssl/packet_locl.h:83:5: Binary operation: ([0, +oo] - 32):unsigned64 by call to `PACKET_copy_bytes` 
    81.   {
    82.       pkt->curr += len;
    83.       pkt->remaining -= len;
              ^
    84.   }
    85.   
