crypto/asn1/tasn_dec.c:763: error: BUFFER_OVERRUN_L3
  Offset added: [0, 2147483644] Size: [1, 2147483644] by call to `asn1_collect`.
Showing all 16 steps of the trace


crypto/asn1/tasn_dec.c:670:19: Assignment
668.       char cst, inf, free_cont = 0;
669.       const unsigned char *p;
670.       BUF_MEM buf = { 0, NULL, 0, 0 };
                         ^
671.       const unsigned char *cont = NULL;
672.       long len;

crypto/asn1/tasn_dec.c:763:14: Call
761.            * So instead just check for UNIVERSAL class and ignore the tag.
762.            */
763.           if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) {
                    ^
764.               goto err;
765.           }

crypto/asn1/tasn_dec.c:1002:1: Parameter `buf->max`
  1000.   #endif
  1001.   
  1002. > static int asn1_collect(BUF_MEM *buf, const unsigned char **in, long len,
  1003.                           char inf, int tag, int aclass, int depth)
  1004.   {

crypto/asn1/tasn_dec.c:1047:29: Call
  1045.               if (!asn1_collect(buf, &p, plen, ininf, tag, aclass, depth + 1))
  1046.                   return 0;
  1047.           } else if (plen && !collect_data(buf, &p, plen))
                                      ^
  1048.               return 0;
  1049.           len -= p - q;

crypto/asn1/tasn_dec.c:1059:1: Parameter `buf->max`
    1057.   }
    1058.   
    1059. > static int collect_data(BUF_MEM *buf, const unsigned char **p, long plen)
    1060.   {
    1061.       int len;

crypto/asn1/tasn_dec.c:1064:14: Call
    1062.       if (buf) {
    1063.           len = buf->length;
    1064.           if (!BUF_MEM_grow_clean(buf, len + plen)) {
                         ^
    1065.               ASN1err(ASN1_F_COLLECT_DATA, ERR_R_MALLOC_FAILURE);
    1066.               return 0;

crypto/buffer/buffer.c:157:1: Parameter `len`
      155.   }
      156.   
      157. > size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len)
      158.   {
      159.       char *ret;

crypto/buffer/buffer.c:181:15: Call
      179.           ret = sec_alloc_realloc(str, n);
      180.       else
      181.           ret = OPENSSL_clear_realloc(str->data, str->max, n);
                           ^
      182.       if (ret == NULL) {
      183.           BUFerr(BUF_F_BUF_MEM_GROW_CLEAN, ERR_R_MALLOC_FAILURE);

crypto/mem.c:198:1: <Offset trace>
196.   }
197.   
198. > void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,
199.                              const char *file, int line)
200.   {

crypto/mem.c:198:1: Parameter `num`
        196.   }
        197.   
        198. > void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,
        199.                              const char *file, int line)
        200.   {

crypto/mem.c:198:1: <Length trace>
196.   }
197.   
198. > void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,
199.                              const char *file, int line)
200.   {

crypto/mem.c:198:1: Parameter `num`
        196.   }
        197.   
        198. > void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,
        199.                              const char *file, int line)
        200.   {

crypto/mem.c:217:11: Call
        215.       }
        216.   
        217.       ret = CRYPTO_malloc(num, file, line);
                         ^
        218.   
        219.       if (ret)

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

crypto/mem.c:217:5: Assignment
        215.       }
        216.   
        217.       ret = CRYPTO_malloc(num, file, line);
                   ^
        218.   
        219.       if (ret)

crypto/mem.c:220:9: Array access: Offset added: [0, 2147483644] Size: [1, 2147483644] by call to `asn1_collect` 
        218.   
        219.       if (ret)
        220.           memcpy(ret, str, old_len);
                       ^
        221.       CRYPTO_clear_free(str, old_len, file, line);
        222.       return ret;
