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


ssl/statem/extensions_srvr.c:1501:17: Call
1499.   
1500.       if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_status_request)
1501.               || !WPACKET_start_sub_packet_u16(pkt)) {
                        ^
1502.           SSLfatal(s, SSL_AD_INTERNAL_ERROR,
1503.                    SSL_F_TLS_CONSTRUCT_STOC_STATUS_REQUEST, ERR_R_INTERNAL_ERROR);

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:1512:29: Call
1510.        * separate message
1511.        */
1512.       if (SSL_IS_TLS13(s) && !tls_construct_cert_status_body(s, pkt)) {
                                    ^
1513.          /* SSLfatal() already called */
1514.          return EXT_RETURN_FAIL;

ssl/statem/statem_srvr.c:4165:1: Parameter `pkt->written`
  4163.    * create a separate message. Returns 1 on success or 0 on failure.
  4164.    */
  4165. > int tls_construct_cert_status_body(SSL *s, WPACKET *pkt)
  4166.   {
  4167.       if (!WPACKET_put_bytes_u8(pkt, s->ext.status_type)

ssl/statem/statem_srvr.c:4167:10: Call
  4165.   int tls_construct_cert_status_body(SSL *s, WPACKET *pkt)
  4166.   {
  4167.       if (!WPACKET_put_bytes_u8(pkt, s->ext.status_type)
                   ^
  4168.               || !WPACKET_sub_memcpy_u24(pkt, s->ext.ocsp.resp,
  4169.                                          s->ext.ocsp.resp_len)) {

crypto/packet.c:329:1: Parameter `pkt->written`
    327.   }
    328.   
    329. > int WPACKET_put_bytes__(WPACKET *pkt, unsigned int val, size_t size)
    330.   {
    331.       unsigned char *data;

crypto/packet.c:335:17: Call
    333.       /* Internal API, so should not fail */
    334.       if (!ossl_assert(size <= sizeof(unsigned int))
    335.               || !WPACKET_allocate_bytes(pkt, size, &data)
                           ^
    336.               || !put_value(data, val, size))
    337.           return 0;

crypto/packet.c:16:1: Parameter `pkt->written`
      14.   #define DEFAULT_BUF_SIZE    256
      15.   
      16. > int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
      17.   {
      18.       if (!WPACKET_reserve_bytes(pkt, len, allocbytes))

crypto/packet.c:18:10: Call
      16.   int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
      17.   {
      18.       if (!WPACKET_reserve_bytes(pkt, len, allocbytes))
                     ^
      19.           return 0;
      20.   

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 + 4]):unsigned64 by call to `tls_construct_cert_status_body` 
        50.           return 0;
        51.   
        52.       if (pkt->buf != NULL && (pkt->buf->length - pkt->written < len)) {
                                           ^
        53.           size_t newlen;
        54.           size_t reflen;
