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


test/packettest.c:71:10: Call
69.       PACKET pkt;
70.   
71.       if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN))
               ^
72.               || !TEST_true(PACKET_get_4(&pkt, &i))
73.               || !TEST_ulong_eq(i, 0x08060402UL)

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:72:17: Call
70.   
71.       if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN))
72.               || !TEST_true(PACKET_get_4(&pkt, &i))
                      ^
73.               || !TEST_ulong_eq(i, 0x08060402UL)
74.               || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 8))

ssl/packet_locl.h:316:8: Parameter `pkt->remaining`
  314.    * |*data|
  315.    */
  316.   __owur static ossl_inline int PACKET_get_4(PACKET *pkt, unsigned long *data)
                ^
  317.   {
  318.       if (!PACKET_peek_4(pkt, data))

ssl/packet_locl.h:318:10: Call
  316.   __owur static ossl_inline int PACKET_get_4(PACKET *pkt, unsigned long *data)
  317.   {
  318.       if (!PACKET_peek_4(pkt, data))
                  ^
  319.           return 0;
  320.   

ssl/packet_locl.h:297:8: Parameter `pkt->remaining`
    295.    * in |*data|
    296.    */
    297.   __owur static ossl_inline int PACKET_peek_4(const PACKET *pkt,
                  ^
    298.                                               unsigned long *data)
    299.   {

test/packettest.c:74:17: Call
72.               || !TEST_true(PACKET_get_4(&pkt, &i))
73.               || !TEST_ulong_eq(i, 0x08060402UL)
74.               || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 8))
                      ^
75.               || !TEST_true(PACKET_get_4(&pkt, &i))
76.               || !TEST_ulong_eq(i, 0xfefcfaf8UL)

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.   
