test/packettest.c:191: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 247):unsigned64 by call to `PACKET_forward`.
Showing all 14 steps of the trace


test/packettest.c:184:10: Call
182.       PACKET pkt;
183.   
184.       if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN))
                ^
185.               || !TEST_true(PACKET_copy_bytes(&pkt, bytes, 4))
186.               || !TEST_char_eq(bytes[0], 2)

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/packettest.c:185:17: Call
183.   
184.       if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN))
185.               || !TEST_true(PACKET_copy_bytes(&pkt, bytes, 4))
                       ^
186.               || !TEST_char_eq(bytes[0], 2)
187.               || !TEST_char_eq(bytes[1], 4)

ssl/packet_locl.h:379:8: Parameter `pkt->remaining`
  377.    * The caller is responsible for ensuring that |data| can hold |len| bytes.
  378.    */
  379.   __owur static ossl_inline int PACKET_copy_bytes(PACKET *pkt,
                ^
  380.                                                   unsigned char *data, size_t len)
  381.   {

ssl/packet_locl.h:382:10: Call
  380.                                                   unsigned char *data, size_t len)
  381.   {
  382.       if (!PACKET_peek_copy_bytes(pkt, data, len))
                  ^
  383.           return 0;
  384.   

ssl/packet_locl.h:363:8: Parameter `len`
    361.   
    362.   /* Peek ahead at |len| bytes from |pkt| and copy them to |data| */
    363.   __owur static ossl_inline int PACKET_peek_copy_bytes(const PACKET *pkt,
                  ^
    364.                                                        unsigned char *data,
    365.                                                        size_t len)

test/packettest.c:191:17: Call
189.               || !TEST_char_eq(bytes[3], 8)
190.               || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN - 4)
191.               || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 8))
                       ^
192.               || !TEST_true(PACKET_copy_bytes(&pkt, bytes, 4))
193.               || !TEST_uchar_eq(bytes[0], 0xf8)

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, +oo] - 247):unsigned64 by call to `PACKET_forward` 
    34.   {
    35.       pkt->curr += len;
    36.       pkt->remaining -= len;
              ^
    37.   }
    38.   
