apps/rsa.c:220: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 67108856] by call to `RSA_check_key_ex`.
Showing all 14 steps of the trace


apps/rsa.c:215:9: Call
213.           RSA_get0_key(rsa, &n, NULL, NULL);
214.           BIO_printf(out, "Modulus=");
215.           BN_print(out, n);
               ^
216.           BIO_printf(out, "\n");
217.       }

crypto/bn/bn_print.c:304:1: Parameter `a->top`
  302.   # endif
  303.   
  304. > int BN_print(BIO *bp, const BIGNUM *a)
  305.   {
  306.       int i, j, v, z = 0;

apps/rsa.c:220:17: Call
218.   
219.       if (check) {
220.           int r = RSA_check_key_ex(rsa, NULL);
                       ^
221.   
222.           if (r == 1) {

crypto/rsa/rsa_chk.c:19:1: Parameter `key->d->top`
  17.   }
  18.   
  19. > int RSA_check_key_ex(const RSA *key, BN_GENCB *cb)
  20.   {
  21.       BIGNUM *i, *j, *k, *l, *m;

crypto/rsa/rsa_chk.c:114:14: Call
  112.               goto err;
  113.           }
  114.           if (!BN_mod(j, key->d, i, ctx)) {
                      ^
  115.               ret = -1;
  116.               goto err;

crypto/bn/bn_div.c:140:1: Parameter `num->top`
    138.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
    139.    */
    140. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    141.              BN_CTX *ctx)
    142.   {

crypto/bn/bn_div.c:185:17: Call
    183.       if (!no_branch && BN_ucmp(num, divisor) < 0) {
    184.           if (rm != NULL) {
    185.               if (BN_copy(rm, num) == NULL)
                           ^
    186.                   return (0);
    187.           }

crypto/bn/bn_lib.c:323:1: <Offset trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `b->top`
      321.   }
      322.   
      323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      324.   {
      325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: <Length trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `*a->d`
      321.   }
      322.   
      323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      324.   {
      325.       bn_check_top(b);

crypto/bn/bn_lib.c:329:9: Call
      327.       if (a == b)
      328.           return a;
      329.       if (bn_wexpand(a, b->top) == NULL)
                     ^
      330.           return NULL;
      331.   

crypto/bn/bn_lib.c:951:1: Parameter `*a->d`
        949.   }
        950.   
        951. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
        952.   {
        953.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:333:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `RSA_check_key_ex` 
      331.   
      332.       if (b->top > 0)
      333.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                     ^
      334.   
      335.       if (BN_get_flags(b, BN_FLG_CONSTTIME) != 0)
