ssl/t1_lib.c:1414: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [`pkt->written`, `pkt->written` + 2]):unsigned64 by call to `ssl_add_serverhello_renegotiate_ext`.
Showing all 12 steps of the trace


ssl/t1_lib.c:1407:10: Call
1405.   #endif
1406.   
1407.       if (!WPACKET_start_sub_packet_u16(pkt)
                 ^
1408.               || !WPACKET_set_flags(pkt, WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH)) {
1409.           SSLerr(SSL_F_SSL_ADD_SERVERHELLO_TLSEXT, ERR_R_INTERNAL_ERROR);

ssl/packet.c:205:1: Parameter `pkt->buf->length`
  203.   }
  204.   
  205. > int WPACKET_start_sub_packet_len__(WPACKET *pkt, size_t lenbytes)
  206.   {
  207.       WPACKET_SUB *sub;

ssl/t1_lib.c:1414:14: Call
1412.   
1413.       if (s->s3->send_connection_binding &&
1414.               !ssl_add_serverhello_renegotiate_ext(s, pkt)) {
                     ^
1415.           SSLerr(SSL_F_SSL_ADD_SERVERHELLO_TLSEXT, ERR_R_INTERNAL_ERROR);
1416.           return 0;

ssl/t1_reneg.c:53:1: Parameter `pkt->written`
  51.   
  52.   /* Add the server's renegotiation binding */
  53. > int ssl_add_serverhello_renegotiate_ext(SSL *s, WPACKET *pkt)
  54.   {
  55.       if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate)

ssl/t1_reneg.c:55:10: Call
  53.   int ssl_add_serverhello_renegotiate_ext(SSL *s, WPACKET *pkt)
  54.   {
  55.       if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate)
                 ^
  56.               || !WPACKET_start_sub_packet_u16(pkt)
  57.               || !WPACKET_start_sub_packet_u8(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] - [pkt->written, pkt->written + 2]):unsigned64 by call to `ssl_add_serverhello_renegotiate_ext` 
      23.           return 0;
      24.   
      25.       if (pkt->buf->length - pkt->written < len) {
                    ^
      26.           size_t newlen;
      27.           size_t reflen;
