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

crypto/packet.c:292:1: Parameter `pkt->buf->length`
  290.   }
  291.   
  292. > int WPACKET_start_sub_packet_len__(WPACKET *pkt, size_t lenbytes)
  293.   {
  294.       WPACKET_SUB *sub;

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

crypto/packet.c:43:1: <LHS trace>
41.                           : NULL))
42.   
43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
44.   {
45.       /* Internal API, so should not fail */

crypto/packet.c:43:1: Parameter `pkt->buf->length`
  41.                           : NULL))
  42.   
  43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
  44.   {
  45.       /* Internal API, so should not fail */

crypto/packet.c:43:1: <RHS trace>
41.                           : NULL))
42.   
43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
44.   {
45.       /* Internal API, so should not fail */

crypto/packet.c:43:1: Parameter `len`
  41.                           : NULL))
  42.   
  43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
  44.   {
  45.       /* Internal API, so should not fail */

crypto/packet.c:52:30: Binary operation: ([0, +oo] - [pkt->written, pkt->written + 19]):unsigned64 by call to `WPACKET_reserve_bytes` 
  50.           return 0;
  51.   
  52.       if (pkt->buf != NULL && (pkt->buf->length - pkt->written < len)) {
                                     ^
  53.           size_t newlen;
  54.           size_t reflen;
