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


test/packettest.c:203:17: Call
201.       PACKET pkt;
202.   
203.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
                       ^
204.               || !PACKET_get_bytes(&pkt, &bytes, 4)
205.               ||  bytes[0] != 2 || bytes[1] != 4

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:204:17: Call
202.   
203.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
204.               || !PACKET_get_bytes(&pkt, &bytes, 4)
                       ^
205.               ||  bytes[0] != 2 || bytes[1] != 4
206.               ||  bytes[2] != 6 || bytes[3] != 8

ssl/packet_locl.h:344:8: Parameter `len`
  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:351:5: Call
  349.           return 0;
  350.   
  351.       packet_forward(pkt, len);
             ^
  352.   
  353.       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] - 4):unsigned64 by call to `PACKET_get_bytes` 
    82.   {
    83.       pkt->curr += len;
    84.       pkt->remaining -= len;
              ^
    85.   }
    86.   
