crypto/bn/bn_exp.c:347: error: BUFFER_OVERRUN_L3
  Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607] by call to `BN_mod_mul_reciprocal`.
Showing all 19 steps of the trace


crypto/bn/bn_exp.c:307:13: Call
305.               goto err;
306.           aa->neg = 0;
307.           if (BN_RECP_CTX_set(&recp, aa, ctx) <= 0)
                   ^
308.               goto err;
309.       } else {

crypto/bn/bn_recp.c:92:1: Parameter `*recp->Nr.d`
  90.   }
  91.   
  92. > int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
  93.   {
  94.       if (!BN_copy(&(recp->N), d))

crypto/bn/bn_exp.c:347:22: Call
345.           if (BN_is_bit_set(p, wstart) == 0) {
346.               if (!start)
347.                   if (!BN_mod_mul_reciprocal(r, r, r, &recp, ctx))
                            ^
348.                       goto err;
349.               if (wstart == 0)

crypto/bn/bn_recp.c:102:1: Parameter `*recp->Nr.d`
  100.   }
  101.   
  102. > int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
  103.                             BN_RECP_CTX *recp, BN_CTX *ctx)
  104.   {

crypto/bn/bn_recp.c:124:11: Call
  122.           ca = x;                 /* Just do the mod */
  123.   
  124.       ret = BN_div_recp(NULL, r, ca, recp, ctx);
                   ^
  125.    err:
  126.       BN_CTX_end(ctx);

crypto/bn/bn_recp.c:138:9: Call
    136.   
    137.       BN_CTX_start(ctx);
    138.       a = BN_CTX_get(ctx);
                   ^
    139.       b = BN_CTX_get(ctx);
    140.       if (dv != NULL)

crypto/bn/bn_ctx.c:283:5: Call
      281.       }
      282.       /* OK, make sure the returned bignum is "zero" */
      283.       BN_zero(ret);
                 ^
      284.       ctx->used++;
      285.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:529:1: Parameter `*a->d`
        527.   }
        528.   
        529. > int BN_set_word(BIGNUM *a, BN_ULONG w)
        530.   {
        531.       bn_check_top(a);

crypto/bn/bn_recp.c:185:10: Call
    183.        *    = |m/N|
    184.        */
    185.       if (!BN_rshift(a, m, recp->num_bits))
                    ^
    186.           goto err;
    187.       if (!BN_mul(b, a, &(recp->Nr), ctx))

crypto/bn/bn_shift.c:168:1: Parameter `*r->d`
      166.   }
      167.   
      168. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
      169.   {
      170.       int i, j, nw, lb, rb;

crypto/bn/bn_shift.c:192:13: Call
      190.       if (r != a) {
      191.           r->neg = a->neg;
      192.           if (bn_wexpand(r, i) == NULL)
                         ^
      193.               return (0);
      194.       } else {

crypto/bn/bn_lib.c:994:1: Parameter `*a->d`
        992.   }
        993.   
        994. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
        995.   {
        996.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:996:37: Call
        994.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
        995.   {
        996.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                                   ^
        997.   }
        998.   

crypto/bn/bn_lib.c:389:1: Parameter `*b->d`
          387.    */
          388.   
          389. > BIGNUM *bn_expand2(BIGNUM *b, int words)
          390.   {
          391.       bn_check_top(b);

crypto/bn/bn_lib.c:394:23: Call
          392.   
          393.       if (words > b->dmax) {
          394.           BN_ULONG *a = bn_expand_internal(b, words);
                                       ^
          395.           if (!a)
          396.               return NULL;

crypto/bn/bn_lib.c:299:1: <Length trace>
297.   /* This is used by bn_expand2() */
298.   /* The caller MUST check that words > b->dmax before calling this */
299. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
300.   {
301.       BN_ULONG *A, *a = NULL;

crypto/bn/bn_lib.c:299:1: Parameter `*b->d`
            297.   /* This is used by bn_expand2() */
            298.   /* The caller MUST check that words > b->dmax before calling this */
            299. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
            300.   {
            301.       BN_ULONG *A, *a = NULL;

crypto/bn/bn_lib.c:334:5: Assignment
            332.   
            333.   #if 1
            334.       B = b->d;
                       ^
            335.       /* Check if the previous number needs to be copied */
            336.       if (B != NULL) {

crypto/bn/bn_lib.c:351:18: Array access: Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607] by call to `BN_mod_mul_reciprocal` 
            349.               a1 = B[1];
            350.               a2 = B[2];
            351.               a3 = B[3];
                                    ^
            352.               A[0] = a0;
            353.               A[1] = a1;
