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


test/packettest.c:86:17: Call
84.       PACKET pkt;
85.   
86.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
                      ^
87.               || !PACKET_get_1(&pkt, &i)
88.               ||  i != 0x02

ssl/packet_locl.h:110:8: Parameter `pkt->remaining`
  108.    * is being used.
  109.    */
  110.   __owur static inline int PACKET_buf_init(PACKET *pkt, unsigned char *buf,
                ^
  111.                                            size_t len)
  112.   {

test/packettest.c:87:17: Call
85.   
86.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
87.               || !PACKET_get_1(&pkt, &i)
                      ^
88.               ||  i != 0x02
89.               || !PACKET_forward(&pkt, BUF_LEN - 2)

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

ssl/packet_locl.h:269:10: Call
  267.   __owur static inline int PACKET_get_1(PACKET *pkt, unsigned int *data)
  268.   {
  269.       if (!PACKET_peek_1(pkt, data))
                  ^
  270.           return 0;
  271.   

ssl/packet_locl.h:256:8: Parameter `pkt->remaining`
    254.   
    255.   /* Peek ahead at 1 byte from |pkt| and store the value in |*data| */
    256.   __owur static inline int PACKET_peek_1(const PACKET *pkt, unsigned int *data)
                  ^
    257.   {
    258.       if (!PACKET_remaining(pkt))

test/packettest.c:89:17: Call
87.               || !PACKET_get_1(&pkt, &i)
88.               ||  i != 0x02
89.               || !PACKET_forward(&pkt, BUF_LEN - 2)
                      ^
90.               || !PACKET_get_1(&pkt, &i)
91.               ||  i != 0xfe

ssl/packet_locl.h:440:8: Parameter `len`
  438.   
  439.   /* Move the current reading position forward |len| bytes */
  440.   __owur static inline int PACKET_forward(PACKET *pkt, size_t len)
                ^
  441.   {
  442.       if (PACKET_remaining(pkt) < len)

ssl/packet_locl.h:445:5: Call
  443.           return 0;
  444.   
  445.       packet_forward(pkt, len);
             ^
  446.   
  447.       return 1;

ssl/packet_locl.h:80:1: <LHS trace>
78.   
79.   /* Internal unchecked shorthand; don't use outside this file. */
80. > static inline void packet_forward(PACKET *pkt, size_t len)
81.   {
82.       pkt->curr += len;

ssl/packet_locl.h:80:1: Parameter `pkt->remaining`
    78.   
    79.   /* Internal unchecked shorthand; don't use outside this file. */
    80. > static inline void packet_forward(PACKET *pkt, size_t len)
    81.   {
    82.       pkt->curr += len;

ssl/packet_locl.h:80:1: <RHS trace>
78.   
79.   /* Internal unchecked shorthand; don't use outside this file. */
80. > static inline void packet_forward(PACKET *pkt, size_t len)
81.   {
82.       pkt->curr += len;

ssl/packet_locl.h:80:1: Parameter `len`
    78.   
    79.   /* Internal unchecked shorthand; don't use outside this file. */
    80. > static inline void packet_forward(PACKET *pkt, size_t len)
    81.   {
    82.       pkt->curr += len;

ssl/packet_locl.h:83:5: Binary operation: ([1, +oo] - 253):unsigned64 by call to `PACKET_forward` 
    81.   {
    82.       pkt->curr += len;
    83.       pkt->remaining -= len;
              ^
    84.   }
    85.   
