ssl/s3_srvr.c:1160: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [1, 256]):unsigned64 by call to `PACKET_copy_bytes`.
Showing all 10 steps of the trace


ssl/s3_srvr.c:1056:9: Call
1054.           PACKET_null_init(&extensions);
1055.           /* We're never DTLS here but just play safe and initialize. */
1056.           PACKET_null_init(&cookie);
                ^
1057.       } else {
1058.           /* Regular ClientHello. */

ssl/packet_locl.h:124:5: Assignment
  122.   {
  123.       pkt->curr = NULL;
  124.       pkt->remaining = 0;
             ^
  125.   }
  126.   

ssl/s3_srvr.c:1160:18: Call
1158.                * function. Remove the field?
1159.                */
1160.               if (!PACKET_copy_bytes(&cookie, s->d1->rcvd_cookie, cookie_len)) {
                         ^
1161.                   al = SSL_AD_INTERNAL_ERROR;
1162.                   SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO, ERR_R_INTERNAL_ERROR);

ssl/packet_locl.h:347:8: Parameter `len`
  345.    * The caller is responsible for ensuring that |data| can hold |len| bytes.
  346.    */
  347.   __owur static inline int PACKET_copy_bytes(PACKET *pkt, unsigned char *data,
                ^
  348.                                              size_t len)
  349.   {

ssl/packet_locl.h:353:5: Call
  351.           return 0;
  352.   
  353.       packet_forward(pkt, len);
             ^
  354.   
  355.       return 1;

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

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

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

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

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