test/sslapitest.c:3125: error: INTEGER_OVERFLOW_L2
  ([0, 9223372036854775807] - 5):unsigned64 by call to `PACKET_forward`.
Showing all 11 steps of the trace


test/sslapitest.c:3117:19: Assignment
3115.       long len;
3116.       unsigned char *data;
3117.       PACKET pkt = {0}, pkt2 = {0}, pkt3 = {0};
                          ^
3118.       unsigned int MFL_code = 0, type = 0;
3119.   

test/sslapitest.c:3123:10: Call
3121.           goto end;
3122.   
3123.       if (!TEST_true( PACKET_buf_init( &pkt, data, len ) )
                 ^
3124.                  /* Skip the record header */
3125.               || !PACKET_forward(&pkt, SSL3_RT_HEADER_LENGTH)

ssl/packet_locl.h:72:8: Parameter `pkt->remaining`
  70.    * is being used.
  71.    */
  72.   __owur static ossl_inline int PACKET_buf_init(PACKET *pkt,
               ^
  73.                                                 const unsigned char *buf,
  74.                                                 size_t len)

test/sslapitest.c:3125:17: Call
3123.       if (!TEST_true( PACKET_buf_init( &pkt, data, len ) )
3124.                  /* Skip the record header */
3125.               || !PACKET_forward(&pkt, SSL3_RT_HEADER_LENGTH)
                        ^
3126.                  /* Skip the handshake message header */
3127.               || !TEST_true(PACKET_forward(&pkt, SSL3_HM_HEADER_LENGTH))

ssl/packet_locl.h:467:8: Parameter `len`
  465.   
  466.   /* Move the current reading position forward |len| bytes */
  467.   __owur static ossl_inline int PACKET_forward(PACKET *pkt, size_t len)
                ^
  468.   {
  469.       if (PACKET_remaining(pkt) < len)

ssl/packet_locl.h:472:5: Call
  470.           return 0;
  471.   
  472.       packet_forward(pkt, len);
             ^
  473.   
  474.       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: ([0, 9223372036854775807] - 5):unsigned64 by call to `PACKET_forward` 
    34.   {
    35.       pkt->curr += len;
    36.       pkt->remaining -= len;
              ^
    37.   }
    38.   
