crypto/rsa/rsa_crpt.c:131: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `rsa_get_public_exp`.
Showing all 26 steps of the trace


crypto/rsa/rsa_crpt.c:110:1: Parameter `in_ctx->stack.depth`
108.   }
109.   
110. > BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx)
111.   {
112.       BIGNUM *e;

crypto/rsa/rsa_crpt.c:123:5: Call
121.       }
122.   
123.       BN_CTX_start(ctx);
           ^
124.       e = BN_CTX_get(ctx);
125.       if (e == NULL) {

crypto/bn/bn_ctx.c:171:1: Parameter `ctx->stack.depth`
  169.   }
  170.   
  171. > void BN_CTX_start(BN_CTX *ctx)
  172.   {
  173.       CTXDBG("ENTER BN_CTX_start()", ctx);

crypto/rsa/rsa_crpt.c:131:13: Call
129.   
130.       if (rsa->e == NULL) {
131.           e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);
                   ^
132.           if (e == NULL) {
133.               RSAerr(RSA_F_RSA_SETUP_BLINDING, RSA_R_NO_PUBLIC_EXPONENT);

crypto/rsa/rsa_crpt.c:82:1: Parameter `ctx->stack.depth`
  80.   }
  81.   
  82. > static BIGNUM *rsa_get_public_exp(const BIGNUM *d, const BIGNUM *p,
  83.                                     const BIGNUM *q, BN_CTX *ctx)
  84.   {

crypto/rsa/rsa_crpt.c:90:5: Call
  88.           return NULL;
  89.   
  90.       BN_CTX_start(ctx);
            ^
  91.       r0 = BN_CTX_get(ctx);
  92.       r1 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:171:1: Parameter `ctx->stack.depth`
    169.   }
    170.   
    171. > void BN_CTX_start(BN_CTX *ctx)
    172.   {
    173.       CTXDBG("ENTER BN_CTX_start()", ctx);

crypto/rsa/rsa_crpt.c:91:10: Call
  89.   
  90.       BN_CTX_start(ctx);
  91.       r0 = BN_CTX_get(ctx);
                 ^
  92.       r1 = BN_CTX_get(ctx);
  93.       r2 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->stack.depth`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

crypto/rsa/rsa_crpt.c:92:10: Call
  90.       BN_CTX_start(ctx);
  91.       r0 = BN_CTX_get(ctx);
  92.       r1 = BN_CTX_get(ctx);
                 ^
  93.       r2 = BN_CTX_get(ctx);
  94.       if (r2 == NULL)

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->stack.depth`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

crypto/rsa/rsa_crpt.c:93:10: Call
  91.       r0 = BN_CTX_get(ctx);
  92.       r1 = BN_CTX_get(ctx);
  93.       r2 = BN_CTX_get(ctx);
                 ^
  94.       if (r2 == NULL)
  95.           goto err;

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->stack.depth`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

crypto/rsa/rsa_crpt.c:101:10: Call
  99.       if (!BN_sub(r2, q, BN_value_one()))
  100.           goto err;
  101.       if (!BN_mul(r0, r1, r2, ctx))
                  ^
  102.           goto err;
  103.   

crypto/bn/bn_mul.c:497:1: Parameter `ctx->stack.depth`
    495.   #endif                          /* BN_RECURSION */
    496.   
    497. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    498.   {
    499.       int ret = bn_mul_fixed_top(r, a, b, ctx);

crypto/bn/bn_mul.c:499:15: Call
    497.   int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    498.   {
    499.       int ret = bn_mul_fixed_top(r, a, b, ctx);
                         ^
    500.   
    501.       bn_correct_top(r);

crypto/bn/bn_mul.c:533:5: Call
      531.       top = al + bl;
      532.   
      533.       BN_CTX_start(ctx);
                 ^
      534.       if ((r == a) || (r == b)) {
      535.           if ((rr = BN_CTX_get(ctx)) == NULL)

crypto/bn/bn_ctx.c:171:1: Parameter `*ctx->stack.indexes`
        169.   }
        170.   
        171. > void BN_CTX_start(BN_CTX *ctx)
        172.   {
        173.       CTXDBG("ENTER BN_CTX_start()", ctx);

crypto/bn/bn_mul.c:618:5: Call
      616.    err:
      617.       bn_check_top(r);
      618.       BN_CTX_end(ctx);
                 ^
      619.       return ret;
      620.   }

crypto/bn/bn_ctx.c:185:1: Parameter `*ctx->stack.indexes`
        183.   }
        184.   
        185. > void BN_CTX_end(BN_CTX *ctx)
        186.   {
        187.       CTXDBG("ENTER BN_CTX_end()", ctx);

crypto/bn/bn_ctx.c:191:27: Call
        189.           ctx->err_stack--;
        190.       else {
        191.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                         ^
        192.           /* Does this stack frame have anything to release? */
        193.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:266:1: <Offset trace>
264.   }
265.   
266. > static unsigned int BN_STACK_pop(BN_STACK *st)
267.   {
268.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:266:1: Parameter `st->depth`
          264.   }
          265.   
          266. > static unsigned int BN_STACK_pop(BN_STACK *st)
          267.   {
          268.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:266:1: <Length trace>
264.   }
265.   
266. > static unsigned int BN_STACK_pop(BN_STACK *st)
267.   {
268.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:266:1: Parameter `*st->indexes`
          264.   }
          265.   
          266. > static unsigned int BN_STACK_pop(BN_STACK *st)
          267.   {
          268.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:268:12: Array access: Offset: [-1, +oo] Size: [1, +oo] by call to `rsa_get_public_exp` 
          266.   static unsigned int BN_STACK_pop(BN_STACK *st)
          267.   {
          268.       return st->indexes[--(st->depth)];
                            ^
          269.   }
          270.   
