ssl/statem/statem_srvr.c:3355: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [`pkt->written`, `pkt->written` + 26]):unsigned64 by call to `WPACKET_memcpy`.
Showing all 12 steps of the trace


ssl/statem/statem_srvr.c:3353:17: Call
3351.               || !WPACKET_get_total_written(pkt, &macoffset)
3352.                  /* Output key name */
3353.               || !WPACKET_memcpy(pkt, key_name, sizeof(key_name))
                        ^
3354.                  /* output IV */
3355.               || !WPACKET_memcpy(pkt, iv, iv_len)

ssl/packet.c:355:1: Parameter `pkt->buf->length`
  353.   }
  354.   
  355. > int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len)
  356.   {
  357.       unsigned char *dest;

ssl/statem/statem_srvr.c:3355:17: Call
3353.               || !WPACKET_memcpy(pkt, key_name, sizeof(key_name))
3354.                  /* output IV */
3355.               || !WPACKET_memcpy(pkt, iv, iv_len)
                        ^
3356.               || !WPACKET_reserve_bytes(pkt, slen + EVP_MAX_BLOCK_LENGTH,
3357.                                         &encdata1)

ssl/packet.c:355:1: Parameter `pkt->written`
  353.   }
  354.   
  355. > int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len)
  356.   {
  357.       unsigned char *dest;

ssl/packet.c:362:10: Call
  360.           return 1;
  361.   
  362.       if (!WPACKET_allocate_bytes(pkt, len, &dest))
                  ^
  363.           return 0;
  364.   

ssl/packet.c:15:1: Parameter `pkt->written`
    13.   #define DEFAULT_BUF_SIZE    256
    14.   
    15. > int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
    16.   {
    17.       if (!WPACKET_reserve_bytes(pkt, len, allocbytes))

ssl/packet.c:17:10: Call
    15.   int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
    16.   {
    17.       if (!WPACKET_reserve_bytes(pkt, len, allocbytes))
                   ^
    18.           return 0;
    19.   

ssl/packet.c:39:1: <LHS trace>
37.                        ? (p)->staticbuf : (unsigned char *)(p)->buf->data)
38.   
39. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
40.   {
41.       /* Internal API, so should not fail */

ssl/packet.c:39:1: Parameter `pkt->buf->length`
      37.                        ? (p)->staticbuf : (unsigned char *)(p)->buf->data)
      38.   
      39. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
      40.   {
      41.       /* Internal API, so should not fail */

ssl/packet.c:39:1: <RHS trace>
37.                        ? (p)->staticbuf : (unsigned char *)(p)->buf->data)
38.   
39. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
40.   {
41.       /* Internal API, so should not fail */

ssl/packet.c:39:1: Parameter `len`
      37.                        ? (p)->staticbuf : (unsigned char *)(p)->buf->data)
      38.   
      39. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
      40.   {
      41.       /* Internal API, so should not fail */

ssl/packet.c:49:36: Binary operation: ([0, +oo] - [pkt->written, pkt->written + 26]):unsigned64 by call to `WPACKET_memcpy` 
      47.           return 0;
      48.   
      49.       if (pkt->staticbuf == NULL && (pkt->buf->length - pkt->written < len)) {
                                               ^
      50.           size_t newlen;
      51.           size_t reflen;
