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


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

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

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

ssl/packet_locl.h:253:8: Parameter `pkt->remaining`
  251.   /* Equivalent of n2l */
  252.   /* Get 4 bytes in network order from |pkt| and store the value in |*data| */
  253.   __owur static ossl_inline int PACKET_get_net_4(PACKET *pkt,
                ^
  254.                                                  unsigned long *data)
  255.   {

ssl/packet_locl.h:256:10: Call
  254.                                                  unsigned long *data)
  255.   {
  256.       if (!PACKET_peek_net_4(pkt, data))
                  ^
  257.           return 0;
  258.   

ssl/packet_locl.h:237:8: Parameter `pkt->remaining`
    235.    * |*data|
    236.    */
    237.   __owur static ossl_inline int PACKET_peek_net_4(const PACKET *pkt,
                  ^
    238.                                                   unsigned long *data)
    239.   {

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

ssl/packet_locl.h:456:8: Parameter `len`
  454.   
  455.   /* Move the current reading position forward |len| bytes */
  456.   __owur static ossl_inline int PACKET_forward(PACKET *pkt, size_t len)
                ^
  457.   {
  458.       if (PACKET_remaining(pkt) < len)

ssl/packet_locl.h:461:5: Call
  459.           return 0;
  460.   
  461.       packet_forward(pkt, len);
             ^
  462.   
  463.       return 1;

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

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

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

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

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