ssl/s3_srvr.c:1171: 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:1145:18: Call
1143.           if (SSL_IS_DTLS(s)) {
1144.               PACKET cookie;
1145.               if (!PACKET_get_length_prefixed_1(&pkt, &cookie)) {
                         ^
1146.                   al = SSL_AD_DECODE_ERROR;
1147.                   SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO, SSL_R_LENGTH_TOO_SHORT);

ssl/packet_locl.h:418:8: Parameter `subpkt->remaining`
  416.    * Upon failure, the original |pkt| and |subpkt| are not modified.
  417.    */
  418.   __owur static inline int PACKET_get_length_prefixed_1(PACKET *pkt, PACKET *subpkt)
                ^
  419.   {
  420.     unsigned int length;

ssl/s3_srvr.c:1171:22: Call
1169.                    * function. Remove the field?
1170.                    */
1171.                   if (!PACKET_copy_bytes(&cookie, s->d1->rcvd_cookie, cookie_len)) {
                             ^
1172.                       al = SSL_AD_INTERNAL_ERROR;
1173.                       SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO, ERR_R_INTERNAL_ERROR);

ssl/packet_locl.h:340:8: Parameter `len`
  338.    * The caller is responsible for ensuring that |data| can hold |len| bytes.
  339.    */
  340.   __owur static inline int PACKET_copy_bytes(PACKET *pkt, unsigned char *data,
                ^
  341.                                              size_t len)
  342.   {

ssl/packet_locl.h:346:5: Call
  344.           return 0;
  345.   
  346.       packet_forward(pkt, len);
             ^
  347.   
  348.       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.   
