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


test/packettest.c:162:17: Call
160.       PACKET pkt;
161.   
162.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
                       ^
163.               || !PACKET_get_net_4(&pkt, &i)
164.               ||  i != 0x02040608UL

ssl/packet_locl.h:109:1: Parameter `pkt->remaining`
  107.    * is being used.
  108.    */
  109. > static inline int PACKET_buf_init(PACKET *pkt, unsigned char *buf, size_t len)
  110.   {
  111.       /* Sanity check for negative values. */

test/packettest.c:163:17: Call
161.   
162.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
163.               || !PACKET_get_net_4(&pkt, &i)
                       ^
164.               ||  i != 0x02040608UL
165.               || !PACKET_forward(&pkt, BUF_LEN - 8)

ssl/packet_locl.h:226:8: Parameter `pkt->remaining`
  224.   /* Equivalent of n2l */
  225.   /* Get 4 bytes in network order from |pkt| and store the value in |*data| */
  226.   __owur static inline int PACKET_get_net_4(PACKET *pkt, unsigned long *data)
                ^
  227.   {
  228.       if (!PACKET_peek_net_4(pkt, data))

ssl/packet_locl.h:228:10: Call
  226.   __owur static inline int PACKET_get_net_4(PACKET *pkt, unsigned long *data)
  227.   {
  228.       if (!PACKET_peek_net_4(pkt, data))
                  ^
  229.           return 0;
  230.   

ssl/packet_locl.h:210:8: Parameter `pkt->remaining`
    208.    * |*data|
    209.    */
    210.   __owur static inline int PACKET_peek_net_4(const PACKET *pkt,
                  ^
    211.                                              unsigned long *data)
    212.   {

test/packettest.c:165:17: Call
163.               || !PACKET_get_net_4(&pkt, &i)
164.               ||  i != 0x02040608UL
165.               || !PACKET_forward(&pkt, BUF_LEN - 8)
                       ^
166.               || !PACKET_get_net_4(&pkt, &i)
167.               ||  i != 0xf8fafcfeUL

ssl/packet_locl.h:401:8: Parameter `len`
  399.   
  400.   /* Move the current reading position forward |len| bytes */
  401.   __owur static inline int PACKET_forward(PACKET *pkt, size_t len)
                ^
  402.   {
  403.       if (PACKET_remaining(pkt) < len)

ssl/packet_locl.h:406:5: Call
  404.           return 0;
  405.   
  406.       packet_forward(pkt, len);
             ^
  407.   
  408.       return 1;

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

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

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

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

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