ssl/d1_lib.c:621: error: INTEGER_OVERFLOW_L2
  ([1, +oo] - 8):unsigned64 by call to `PACKET_copy_bytes`.
Showing all 20 steps of the trace


ssl/d1_lib.c:574:14: Call
572.           clearpkt = 1;
573.   
574.           if (!PACKET_buf_init(&pkt, buf, n)) {
                    ^
575.               SSLerr(SSL_F_DTLS1_LISTEN, ERR_R_INTERNAL_ERROR);
576.               return -1;

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

ssl/d1_lib.c:599:14: Call
597.   
598.           /* Get the record header */
599.           if (!PACKET_get_1(&pkt, &rectype)
                    ^
600.               || !PACKET_get_1(&pkt, &versmajor)) {
601.               SSLerr(SSL_F_DTLS1_LISTEN, SSL_R_LENGTH_MISMATCH);

ssl/packet_locl.h:277:8: Parameter `pkt->remaining`
  275.   
  276.   /* Get 1 byte from |pkt| and store the value in |*data| */
  277.   __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data)
                ^
  278.   {
  279.       if (!PACKET_peek_1(pkt, data))

ssl/packet_locl.h:279:10: Call
  277.   __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data)
  278.   {
  279.       if (!PACKET_peek_1(pkt, data))
                  ^
  280.           return 0;
  281.   

ssl/packet_locl.h:265:8: Parameter `pkt->remaining`
    263.   
    264.   /* Peek ahead at 1 byte from |pkt| and store the value in |*data| */
    265.   __owur static ossl_inline int PACKET_peek_1(const PACKET *pkt,
                  ^
    266.                                               unsigned int *data)
    267.   {

ssl/d1_lib.c:600:17: Call
598.           /* Get the record header */
599.           if (!PACKET_get_1(&pkt, &rectype)
600.               || !PACKET_get_1(&pkt, &versmajor)) {
                       ^
601.               SSLerr(SSL_F_DTLS1_LISTEN, SSL_R_LENGTH_MISMATCH);
602.               goto end;

ssl/packet_locl.h:277:8: Parameter `pkt->remaining`
  275.   
  276.   /* Get 1 byte from |pkt| and store the value in |*data| */
  277.   __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data)
                ^
  278.   {
  279.       if (!PACKET_peek_1(pkt, data))

ssl/packet_locl.h:279:10: Call
  277.   __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data)
  278.   {
  279.       if (!PACKET_peek_1(pkt, data))
                  ^
  280.           return 0;
  281.   

ssl/packet_locl.h:265:8: Parameter `pkt->remaining`
    263.   
    264.   /* Peek ahead at 1 byte from |pkt| and store the value in |*data| */
    265.   __owur static ossl_inline int PACKET_peek_1(const PACKET *pkt,
                  ^
    266.                                               unsigned int *data)
    267.   {

ssl/d1_lib.c:619:14: Call
617.           }
618.   
619.           if (!PACKET_forward(&pkt, 1)
                    ^
620.               /* Save the sequence number: 64 bits, with top 2 bytes = epoch */
621.               || !PACKET_copy_bytes(&pkt, seq, SEQ_NUM_SIZE)

ssl/packet_locl.h:456:8: Parameter `len`
  454.   
  455.   /* Move the current reading position forward |len| bytes */
  456.   __owur static ossl_inline int PACKET_forward(PACKET *pkt, size_t len)
                ^
  457.   {
  458.       if (PACKET_remaining(pkt) < len)

ssl/d1_lib.c:621:17: Call
619.           if (!PACKET_forward(&pkt, 1)
620.               /* Save the sequence number: 64 bits, with top 2 bytes = epoch */
621.               || !PACKET_copy_bytes(&pkt, seq, SEQ_NUM_SIZE)
                       ^
622.               || !PACKET_get_length_prefixed_2(&pkt, &msgpkt)
623.               || PACKET_remaining(&pkt) != 0) {

ssl/packet_locl.h:373:8: Parameter `len`
  371.    * The caller is responsible for ensuring that |data| can hold |len| bytes.
  372.    */
  373.   __owur static ossl_inline int PACKET_copy_bytes(PACKET *pkt,
                ^
  374.                                                   unsigned char *data,
  375.                                                   size_t len)

ssl/packet_locl.h:380:5: Call
  378.           return 0;
  379.   
  380.       packet_forward(pkt, len);
             ^
  381.   
  382.       return 1;

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

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

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

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

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