ssl/statem/extensions_srvr.c:1786: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [`pkt->written`, `pkt->written` + 19]):unsigned64 by call to `WPACKET_reserve_bytes`.
Showing all 8 steps of the trace


ssl/statem/extensions_srvr.c:1785:17: Call
1783.               || !WPACKET_put_bytes_u8(pkt, s->s3.peer_tmp == NULL)
1784.               || !WPACKET_put_bytes_u32(pkt, (unsigned int)time(NULL))
1785.               || !WPACKET_start_sub_packet_u16(pkt)
                        ^
1786.               || !WPACKET_reserve_bytes(pkt, EVP_MAX_MD_SIZE, &hashval1)) {
1787.           SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_CONSTRUCT_STOC_COOKIE,

ssl/packet.c:272:1: Parameter `pkt->buf->length`
  270.   }
  271.   
  272. > int WPACKET_start_sub_packet_len__(WPACKET *pkt, size_t lenbytes)
  273.   {
  274.       WPACKET_SUB *sub;

ssl/statem/extensions_srvr.c:1786:17: Call
1784.               || !WPACKET_put_bytes_u32(pkt, (unsigned int)time(NULL))
1785.               || !WPACKET_start_sub_packet_u16(pkt)
1786.               || !WPACKET_reserve_bytes(pkt, EVP_MAX_MD_SIZE, &hashval1)) {
                        ^
1787.           SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_CONSTRUCT_STOC_COOKIE,
1788.                    ERR_R_INTERNAL_ERROR);

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

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

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

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

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