ssl/d1_lib.c:718: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] (⇐ [0, +oo] + 8) Size: [1, 2147483644] by call to `WPACKET_memcpy`.
Showing all 17 steps of the trace


ssl/d1_lib.c:711:18: Call
709.   
710.               /* Construct the record and message headers */
711.               if (!WPACKET_init(&wpkt, s->init_buf)
                        ^
712.                       || !WPACKET_put_bytes_u8(&wpkt, SSL3_RT_HANDSHAKE)
713.                       || !WPACKET_put_bytes_u16(&wpkt, version)

ssl/packet.c:149:12: Call
  147.   int WPACKET_init(WPACKET *pkt, BUF_MEM *buf)
  148.   {
  149.       return WPACKET_init_len(pkt, buf, 0);
                    ^
  150.   }
  151.   

ssl/packet.c:133:1: Parameter `pkt->curr`
    131.   }
    132.   
    133. > int WPACKET_init_len(WPACKET *pkt, BUF_MEM *buf, size_t lenbytes)
    134.   {
    135.       /* Internal API, so should not fail */

ssl/d1_lib.c:712:25: Call
710.               /* Construct the record and message headers */
711.               if (!WPACKET_init(&wpkt, s->init_buf)
712.                       || !WPACKET_put_bytes_u8(&wpkt, SSL3_RT_HANDSHAKE)
                               ^
713.                       || !WPACKET_put_bytes_u16(&wpkt, version)
714.                          /*

ssl/packet.c:288:1: Parameter `pkt->curr`
  286.   }
  287.   
  288. > int WPACKET_put_bytes__(WPACKET *pkt, unsigned int val, size_t size)
  289.   {
  290.       unsigned char *data;

ssl/d1_lib.c:713:25: Call
711.               if (!WPACKET_init(&wpkt, s->init_buf)
712.                       || !WPACKET_put_bytes_u8(&wpkt, SSL3_RT_HANDSHAKE)
713.                       || !WPACKET_put_bytes_u16(&wpkt, version)
                               ^
714.                          /*
715.                           * Record sequence number is always the same as in the

ssl/packet.c:288:1: Parameter `pkt->curr`
  286.   }
  287.   
  288. > int WPACKET_put_bytes__(WPACKET *pkt, unsigned int val, size_t size)
  289.   {
  290.       unsigned char *data;

ssl/d1_lib.c:718:25: Call
716.                           * received ClientHello
717.                           */
718.                       || !WPACKET_memcpy(&wpkt, seq, SEQ_NUM_SIZE)
                               ^
719.                          /* End of record, start sub packet for message */
720.                       || !WPACKET_start_sub_packet_u16(&wpkt)

ssl/packet.c:329:1: <Offset trace>
327.   }
328.   
329. > int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len)
330.   {
331.       unsigned char *dest;

ssl/packet.c:329:1: Parameter `len`
  327.   }
  328.   
  329. > int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len)
  330.   {
  331.       unsigned char *dest;

ssl/packet.c:329:1: <Length trace>
327.   }
328.   
329. > int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len)
330.   {
331.       unsigned char *dest;

ssl/packet.c:329:1: Parameter `*pkt->buf->data`
  327.   }
  328.   
  329. > int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len)
  330.   {
  331.       unsigned char *dest;

ssl/packet.c:336:10: Call
  334.           return 1;
  335.   
  336.       if (!WPACKET_allocate_bytes(pkt, len, &dest))
                  ^
  337.           return 0;
  338.   

ssl/packet.c:15:1: Parameter `**allocbytes`
    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: Parameter `**allocbytes`
      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:339:5: Array access: Offset added: [8, +oo] (⇐ [0, +oo] + 8) Size: [1, 2147483644] by call to `WPACKET_memcpy` 
  337.           return 0;
  338.   
  339.       memcpy(dest, src, len);
             ^
  340.   
  341.       return 1;
