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


test/packettest.c:317:17: Call
315.       PACKET pkt;
316.   
317.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
                       ^
318.               || !PACKET_forward(&pkt, 1)
319.               || !PACKET_get_bytes(&pkt, &byte, 1)

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:318:17: Call
316.   
317.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
318.               || !PACKET_forward(&pkt, 1)
                       ^
319.               || !PACKET_get_bytes(&pkt, &byte, 1)
320.               ||  byte[0] != 4

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