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


test/packettest.c:123:17: Call
121.       PACKET pkt;
122.   
123.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
                       ^
124.               || !PACKET_get_net_2(&pkt, &i)
125.               ||  i != 0x0204

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:124:17: Call
122.   
123.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
124.               || !PACKET_get_net_2(&pkt, &i)
                       ^
125.               ||  i != 0x0204
126.               || !PACKET_forward(&pkt, BUF_LEN - 4)

ssl/packet_locl.h:192:8: Parameter `pkt->remaining`
  190.   /* Equivalent of n2s */
  191.   /* Get 2 bytes in network order from |pkt| and store the value in |*data| */
  192.   __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt,
                ^
  193.                                                  unsigned int *data)
  194.   {

ssl/packet_locl.h:195:10: Call
  193.                                                  unsigned int *data)
  194.   {
  195.       if (!PACKET_peek_net_2(pkt, data))
                  ^
  196.           return 0;
  197.   

ssl/packet_locl.h:178:8: Parameter `pkt->remaining`
    176.    * |*data|
    177.    */
    178.   __owur static ossl_inline int PACKET_peek_net_2(const PACKET *pkt,
                  ^
    179.                                                   unsigned int *data)
    180.   {

test/packettest.c:126:17: Call
124.               || !PACKET_get_net_2(&pkt, &i)
125.               ||  i != 0x0204
126.               || !PACKET_forward(&pkt, BUF_LEN - 4)
                       ^
127.               || !PACKET_get_net_2(&pkt, &i)
128.               ||  i != 0xfcfe

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