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


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

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

test/packettest.c:205:17: Call
203.   
204.       if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)
205.               || !PACKET_get_bytes(&pkt, &bytes, 4)
                       ^
206.               ||  bytes[0] != 2 || bytes[1] != 4
207.               ||  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.                                                  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:80:1: <LHS trace>
78.   
79.   /* Internal unchecked shorthand; don't use outside this file. */
80. > static ossl_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 ossl_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 ossl_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 ossl_inline void packet_forward(PACKET *pkt, size_t len)
    81.   {
    82.       pkt->curr += len;

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