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


test/packettest.c:54:17: Call
52.       PACKET pkt;
53.   
54.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
                      ^
55.               || !PACKET_get_1(&pkt, &i)
56.               ||  i != 0x02

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:55:17: Call
53.   
54.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
55.               || !PACKET_get_1(&pkt, &i)
                      ^
56.               ||  i != 0x02
57.               || !PACKET_forward(&pkt, BUF_LEN - 2)

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

ssl/packet_locl.h:273:10: Call
  271.   __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data)
  272.   {
  273.       if (!PACKET_peek_1(pkt, data))
                  ^
  274.           return 0;
  275.   

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

test/packettest.c:57:17: Call
55.               || !PACKET_get_1(&pkt, &i)
56.               ||  i != 0x02
57.               || !PACKET_forward(&pkt, BUF_LEN - 2)
                      ^
58.               || !PACKET_get_1(&pkt, &i)
59.               ||  i != 0xfe

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