ssl/t1_lib.c:1057: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [0, `s->s3->previous_client_finished_len` + `pkt->written` + 7]):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:1057:14: Call
1055.       if (s->tlsext_hostname != NULL) {
1056.           /* Add TLS extension servername to the Client Hello message */
1057.           if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_name)
                     ^
1058.                      /* Sub-packet for server_name extension */
1059.                   || !WPACKET_start_sub_packet_u16(pkt)

ssl/packet.c:242:1: Parameter `pkt->written`
  240.   }
  241.   
  242. > int WPACKET_put_bytes__(WPACKET *pkt, unsigned int val, size_t size)
  243.   {
  244.       unsigned char *data;

ssl/packet.c:250:17: Call
  248.   
  249.       if (size > sizeof(unsigned int)
  250.               || !WPACKET_allocate_bytes(pkt, size, &data)
                         ^
  251.               || !put_value(data, val, size))
  252.           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 + 7]):unsigned64 by call to `WPACKET_put_bytes__` 
    23.           return 0;
    24.   
    25.       if (pkt->buf->length - pkt->written < len) {
                  ^
    26.           size_t newlen;
    27.           size_t reflen;
