ssl/d1_lib.c:625: error: INTEGER_OVERFLOW_L2
  ([2, +oo] - 32):unsigned64 by call to `PACKET_forward`.
Showing all 26 steps of the trace


ssl/d1_lib.c:576:17: Call
574.               || !PACKET_get_net_3(&msgpkt, &fragoff)
575.               || !PACKET_get_net_3(&msgpkt, &fraglen)
576.               || !PACKET_get_sub_packet(&msgpkt, &msgpayload, fraglen)
                       ^
577.               || PACKET_remaining(&msgpkt) != 0) {
578.               SSLerr(SSL_F_DTLSV1_LISTEN, SSL_R_LENGTH_MISMATCH);

ssl/packet_locl.h:124:8: Parameter `subpkt->remaining`
  122.    * original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
  123.    */
  124.   __owur static ossl_inline int PACKET_get_sub_packet(PACKET *pkt,
                ^
  125.                                                       PACKET *subpkt, size_t len)
  126.   {

ssl/packet_locl.h:127:10: Call
  125.                                                       PACKET *subpkt, size_t len)
  126.   {
  127.       if (!PACKET_peek_sub_packet(pkt, subpkt, len))
                  ^
  128.           return 0;
  129.   

ssl/packet_locl.h:110:8: Parameter `subpkt->remaining`
    108.    * the original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
    109.    */
    110.   __owur static ossl_inline int PACKET_peek_sub_packet(const PACKET *pkt,
                  ^
    111.                                                        PACKET *subpkt, size_t len)
    112.   {

ssl/d1_lib.c:611:14: Call
609.                               s->msg_callback_arg);
610.   
611.           if (!PACKET_get_net_2(&msgpayload, &clientvers)) {
                    ^
612.               SSLerr(SSL_F_DTLSV1_LISTEN, SSL_R_LENGTH_MISMATCH);
613.               goto end;

ssl/packet_locl.h:153:8: Parameter `pkt->remaining`
  151.   /* Equivalent of n2s */
  152.   /* Get 2 bytes in network order from |pkt| and store the value in |*data| */
  153.   __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data)
                ^
  154.   {
  155.       if (!PACKET_peek_net_2(pkt, data))

ssl/packet_locl.h:155:10: Call
  153.   __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data)
  154.   {
  155.       if (!PACKET_peek_net_2(pkt, data))
                  ^
  156.           return 0;
  157.   

ssl/packet_locl.h:139:8: Parameter `pkt->remaining`
    137.    * |*data|
    138.    */
    139.   __owur static ossl_inline int PACKET_peek_net_2(const PACKET *pkt,
                  ^
    140.                                                   unsigned int *data)
    141.   {

ssl/d1_lib.c:625:14: Call
623.           }
624.   
625.           if (!PACKET_forward(&msgpayload, SSL3_RANDOM_SIZE)
                    ^
626.               || !PACKET_get_length_prefixed_1(&msgpayload, &session)
627.               || !PACKET_get_length_prefixed_1(&msgpayload, &cookiepkt)) {

ssl/packet_locl.h:419:8: Parameter `len`
  417.   
  418.   /* Move the current reading position forward |len| bytes */
  419.   __owur static ossl_inline int PACKET_forward(PACKET *pkt, size_t len)
                ^
  420.   {
  421.       if (PACKET_remaining(pkt) < len)

ssl/d1_lib.c:576:17: Call
574.               || !PACKET_get_net_3(&msgpkt, &fragoff)
575.               || !PACKET_get_net_3(&msgpkt, &fraglen)
576.               || !PACKET_get_sub_packet(&msgpkt, &msgpayload, fraglen)
                       ^
577.               || PACKET_remaining(&msgpkt) != 0) {
578.               SSLerr(SSL_F_DTLSV1_LISTEN, SSL_R_LENGTH_MISMATCH);

ssl/packet_locl.h:124:8: Parameter `subpkt->remaining`
  122.    * original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
  123.    */
  124.   __owur static ossl_inline int PACKET_get_sub_packet(PACKET *pkt,
                ^
  125.                                                       PACKET *subpkt, size_t len)
  126.   {

ssl/packet_locl.h:127:10: Call
  125.                                                       PACKET *subpkt, size_t len)
  126.   {
  127.       if (!PACKET_peek_sub_packet(pkt, subpkt, len))
                  ^
  128.           return 0;
  129.   

ssl/packet_locl.h:110:8: Parameter `subpkt->remaining`
    108.    * the original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
    109.    */
    110.   __owur static ossl_inline int PACKET_peek_sub_packet(const PACKET *pkt,
                  ^
    111.                                                        PACKET *subpkt, size_t len)
    112.   {

ssl/d1_lib.c:611:14: Call
609.                               s->msg_callback_arg);
610.   
611.           if (!PACKET_get_net_2(&msgpayload, &clientvers)) {
                    ^
612.               SSLerr(SSL_F_DTLSV1_LISTEN, SSL_R_LENGTH_MISMATCH);
613.               goto end;

ssl/packet_locl.h:153:8: Parameter `pkt->remaining`
  151.   /* Equivalent of n2s */
  152.   /* Get 2 bytes in network order from |pkt| and store the value in |*data| */
  153.   __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data)
                ^
  154.   {
  155.       if (!PACKET_peek_net_2(pkt, data))

ssl/packet_locl.h:155:10: Call
  153.   __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data)
  154.   {
  155.       if (!PACKET_peek_net_2(pkt, data))
                  ^
  156.           return 0;
  157.   

ssl/packet_locl.h:139:8: Parameter `pkt->remaining`
    137.    * |*data|
    138.    */
    139.   __owur static ossl_inline int PACKET_peek_net_2(const PACKET *pkt,
                  ^
    140.                                                   unsigned int *data)
    141.   {

ssl/d1_lib.c:625:14: Call
623.           }
624.   
625.           if (!PACKET_forward(&msgpayload, SSL3_RANDOM_SIZE)
                    ^
626.               || !PACKET_get_length_prefixed_1(&msgpayload, &session)
627.               || !PACKET_get_length_prefixed_1(&msgpayload, &cookiepkt)) {

ssl/packet_locl.h:419:8: Parameter `len`
  417.   
  418.   /* Move the current reading position forward |len| bytes */
  419.   __owur static ossl_inline int PACKET_forward(PACKET *pkt, size_t len)
                ^
  420.   {
  421.       if (PACKET_remaining(pkt) < len)

ssl/packet_locl.h:424:5: Call
  422.           return 0;
  423.   
  424.       packet_forward(pkt, len);
             ^
  425.   
  426.       return 1;

ssl/packet_locl.h:33:1: <LHS trace>
31.   
32.   /* Internal unchecked shorthand; don't use outside this file. */
33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
34.   {
35.       pkt->curr += len;

ssl/packet_locl.h:33:1: Parameter `pkt->remaining`
    31.   
    32.   /* Internal unchecked shorthand; don't use outside this file. */
    33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
    34.   {
    35.       pkt->curr += len;

ssl/packet_locl.h:33:1: <RHS trace>
31.   
32.   /* Internal unchecked shorthand; don't use outside this file. */
33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
34.   {
35.       pkt->curr += len;

ssl/packet_locl.h:33:1: Parameter `len`
    31.   
    32.   /* Internal unchecked shorthand; don't use outside this file. */
    33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
    34.   {
    35.       pkt->curr += len;

ssl/packet_locl.h:36:5: Binary operation: ([2, +oo] - 32):unsigned64 by call to `PACKET_forward` 
    34.   {
    35.       pkt->curr += len;
    36.       pkt->remaining -= len;
              ^
    37.   }
    38.   
