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


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

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:218:17: Call
216.   
217.       if (check) {
218.           int r = RSA_check_key(rsa);
                       ^
219.   
220.           if (r == 1)

crypto/rsa/rsa_chk.c:14:1: Parameter `key->d->top`
  12.   #include "rsa_locl.h"
  13.   
  14. > int RSA_check_key(const RSA *key)
  15.   {
  16.       return RSA_check_key_ex(key, NULL);

crypto/rsa/rsa_chk.c:16:12: Call
  14.   int RSA_check_key(const RSA *key)
  15.   {
  16.       return RSA_check_key_ex(key, NULL);
                   ^
  17.   }
  18.   

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:948:1: Parameter `*a->d`
          946.   }
          947.   
          948. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
          949.   {
          950.       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` 
        331.   
        332.       if (b->top > 0)
        333.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                       ^
        334.   
        335.       a->top = b->top;
