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


test/packettest.c:105:17: Call
103.       PACKET pkt;
104.   
105.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
                       ^
106.               || !PACKET_get_4(&pkt, &i)
107.               ||  i != 0x08060402UL

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:106:17: Call
104.   
105.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
106.               || !PACKET_get_4(&pkt, &i)
                       ^
107.               ||  i != 0x08060402UL
108.               || !PACKET_forward(&pkt, BUF_LEN - 8)

ssl/packet_locl.h:299:8: Parameter `pkt->remaining`
  297.    * |*data|
  298.    */
  299.   __owur static inline int PACKET_get_4(PACKET *pkt, unsigned long *data)
                ^
  300.   {
  301.       if (!PACKET_peek_4(pkt, data))

ssl/packet_locl.h:301:10: Call
  299.   __owur static inline int PACKET_get_4(PACKET *pkt, unsigned long *data)
  300.   {
  301.       if (!PACKET_peek_4(pkt, data))
                  ^
  302.           return 0;
  303.   

ssl/packet_locl.h:281:8: Parameter `pkt->remaining`
    279.    * in |*data|
    280.    */
    281.   __owur static inline int PACKET_peek_4(const PACKET *pkt, unsigned long *data)
                  ^
    282.   {
    283.       if (PACKET_remaining(pkt) < 4)

test/packettest.c:108:17: Call
106.               || !PACKET_get_4(&pkt, &i)
107.               ||  i != 0x08060402UL
108.               || !PACKET_forward(&pkt, BUF_LEN - 8)
                       ^
109.               || !PACKET_get_4(&pkt, &i)
110.               ||  i != 0xfefcfaf8UL

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: ([4, +oo] - 247):unsigned64 by call to `PACKET_forward` 
    81.   {
    82.       pkt->curr += len;
    83.       pkt->remaining -= len;
              ^
    84.   }
    85.   
