crypto/x509/x509spki.c:122: error: BUFFER_OVERRUN_L3
  Offset: [2, +oo] (⇐ [0, +oo] + 2) Size: [1, +oo] by call to `EVP_EncodeBlock`.
Showing all 14 steps of the trace


crypto/x509/x509spki.c:111:15: Call
109.       char *b64_str;
110.       int der_len;
111.       der_len = i2d_NETSCAPE_SPKI(spki, NULL);
                     ^
112.       der_spki = OPENSSL_malloc(der_len);
113.       b64_str = OPENSSL_malloc(der_len * 2);

crypto/asn1/x_spki.c:82:1: Call
  80.   } ASN1_SEQUENCE_END(NETSCAPE_SPKI)
  81.   
  82. > IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKI)

crypto/asn1/tasn_enc.c:94:12: Call
    92.   int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it)
    93.   {
    94.       return asn1_item_flags_i2d(val, out, it, 0);
                     ^
    95.   }
    96.   

crypto/asn1/tasn_enc.c:115:13: Assignment
      113.           buf = OPENSSL_malloc(len);
      114.           if (buf == NULL)
      115.               return -1;
                         ^
      116.           p = buf;
      117.           ASN1_item_ex_i2d(&val, &p, it, -1, flags);

crypto/asn1/tasn_enc.c:94:5: Assignment
    92.   int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it)
    93.   {
    94.       return asn1_item_flags_i2d(val, out, it, 0);
              ^
    95.   }
    96.   

crypto/asn1/x_spki.c:82:1: Assignment
  80.   } ASN1_SEQUENCE_END(NETSCAPE_SPKI)
  81.   
  82. > IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKI)

crypto/x509/x509spki.c:111:5: Assignment
109.       char *b64_str;
110.       int der_len;
111.       der_len = i2d_NETSCAPE_SPKI(spki, NULL);
           ^
112.       der_spki = OPENSSL_malloc(der_len);
113.       b64_str = OPENSSL_malloc(der_len * 2);

crypto/x509/x509spki.c:112:16: Call
110.       int der_len;
111.       der_len = i2d_NETSCAPE_SPKI(spki, NULL);
112.       der_spki = OPENSSL_malloc(der_len);
                      ^
113.       b64_str = OPENSSL_malloc(der_len * 2);
114.       if (der_spki == NULL || b64_str == NULL) {

crypto/mem.c:125:9: Assignment
  123.   
  124.       if (num <= 0)
  125.           return NULL;
                 ^
  126.   
  127.       allow_customize = 0;

crypto/x509/x509spki.c:112:5: Assignment
110.       int der_len;
111.       der_len = i2d_NETSCAPE_SPKI(spki, NULL);
112.       der_spki = OPENSSL_malloc(der_len);
           ^
113.       b64_str = OPENSSL_malloc(der_len * 2);
114.       if (der_spki == NULL || b64_str == NULL) {

crypto/x509/x509spki.c:122:5: Call
120.       p = der_spki;
121.       i2d_NETSCAPE_SPKI(spki, &p);
122.       EVP_EncodeBlock((unsigned char *)b64_str, der_spki, der_len);
           ^
123.       OPENSSL_free(der_spki);
124.       return b64_str;

crypto/evp/encode.c:220:1: <Length trace>
218.   }
219.   
220. > int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen)
221.   {
222.       int i, ret = 0;

crypto/evp/encode.c:220:1: Parameter `*f`
  218.   }
  219.   
  220. > int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen)
  221.   {
  222.       int i, ret = 0;

crypto/evp/encode.c:228:49: Array access: Offset: [2, +oo] (⇐ [0, +oo] + 2) Size: [1, +oo] by call to `EVP_EncodeBlock` 
  226.           if (i >= 3) {
  227.               l = (((unsigned long)f[0]) << 16L) |
  228.                   (((unsigned long)f[1]) << 8L) | f[2];
                                                         ^
  229.               *(t++) = conv_bin2ascii(l >> 18L);
  230.               *(t++) = conv_bin2ascii(l >> 12L);
