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


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

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

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)

test/packettest.c:318:17: Call
316.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
317.               || !PACKET_forward(&pkt, 1)
318.               || !PACKET_get_bytes(&pkt, &byte, 1)
                       ^
319.               ||  byte[0] != 4
320.               || !PACKET_forward(&pkt, BUF_LEN - 3)

ssl/packet_locl.h:344:8: Parameter `pkt->remaining`
  342.    * freed
  343.    */
  344.   __owur static ossl_inline int PACKET_get_bytes(PACKET *pkt,
                ^
  345.                                                  const unsigned char **data,
  346.                                                  size_t len)

ssl/packet_locl.h:348:10: Call
  346.                                                  size_t len)
  347.   {
  348.       if (!PACKET_peek_bytes(pkt, data, len))
                  ^
  349.           return 0;
  350.   

ssl/packet_locl.h:326:8: Parameter `len`
    324.    * underlying buffer gets freed
    325.    */
    326.   __owur static ossl_inline int PACKET_peek_bytes(const PACKET *pkt,
                  ^
    327.                                                   const unsigned char **data,
    328.                                                   size_t len)

test/packettest.c:320:17: Call
318.               || !PACKET_get_bytes(&pkt, &byte, 1)
319.               ||  byte[0] != 4
320.               || !PACKET_forward(&pkt, BUF_LEN - 3)
                       ^
321.               || !PACKET_get_bytes(&pkt, &byte, 1)
322.               ||  byte[0] != 0xfe) {

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