ssl/t1_lib.c:1055: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [0, `s->s3->previous_client_finished_len` + `pkt->written` + 6]):unsigned64 by call to `WPACKET_put_bytes__`.
Showing all 9 steps of the trace


ssl/t1_lib.c:1016:1: Parameter `pkt->written`
1014.   }
1015.   
1016. > int ssl_add_clienthello_tlsext(SSL *s, WPACKET *pkt, int *al)
1017.   {
1018.   #ifndef OPENSSL_NO_EC

ssl/t1_lib.c:1055:14: Call
1053.       if (s->tlsext_hostname != NULL) {
1054.           /* Add TLS extension servername to the Client Hello message */
1055.           if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_name)
                     ^
1056.                      /* Sub-packet for server_name extension */
1057.                   || !WPACKET_start_sub_packet_u16(pkt)

ssl/packet.c:237:1: Parameter `pkt->written`
  235.   }
  236.   
  237. > int WPACKET_put_bytes__(WPACKET *pkt, unsigned int val, size_t size)
  238.   {
  239.       unsigned char *data;

ssl/packet.c:245:17: Call
  243.   
  244.       if (size > sizeof(unsigned int)
  245.               || !WPACKET_allocate_bytes(pkt, size, &data)
                         ^
  246.               || !put_value(data, val, size))
  247.           return 0;

ssl/packet.c:15:1: <LHS trace>
13.   #define DEFAULT_BUF_SIZE    256
14.   
15. > int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
16.   {
17.       /* Internal API, so should not fail */

ssl/packet.c:15:1: Parameter `pkt->buf->length`
    13.   #define DEFAULT_BUF_SIZE    256
    14.   
    15. > int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
    16.   {
    17.       /* Internal API, so should not fail */

ssl/packet.c:15:1: <RHS trace>
13.   #define DEFAULT_BUF_SIZE    256
14.   
15. > int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
16.   {
17.       /* Internal API, so should not fail */

ssl/packet.c:15:1: Parameter `len`
    13.   #define DEFAULT_BUF_SIZE    256
    14.   
    15. > int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
    16.   {
    17.       /* Internal API, so should not fail */

ssl/packet.c:25:9: Binary operation: ([0, +oo] - [0, s->s3->previous_client_finished_len + pkt->written + 6]):unsigned64 by call to `WPACKET_put_bytes__` 
    23.           return 0;
    24.   
    25.       if (pkt->buf->length - pkt->written < len) {
                  ^
    26.           size_t newlen;
    27.   
