crypto/bn/bn_gf2m.c:1162: error: BUFFER_OVERRUN_L3
  Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607] by call to `BN_rand`.
Showing all 18 steps of the trace


crypto/bn/bn_gf2m.c:1126:9: Call
1124.   
1125.       BN_CTX_start(ctx);
1126.       a = BN_CTX_get(ctx);
                ^
1127.       z = BN_CTX_get(ctx);
1128.       w = BN_CTX_get(ctx);

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_gf2m.c:1162:18: Call
1160.               goto err;
1161.           do {
1162.               if (!BN_rand(rho, p[0], 0, 0))
                         ^
1163.                   goto err;
1164.               if (!BN_GF2m_mod_arr(rho, rho, p))

crypto/bn/bn_rand.c:199:1: Parameter `*rnd->d`
  197.   }
  198.   
  199. > int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
  200.   {
  201.       return bnrand(0, rnd, bits, top, bottom);

crypto/bn/bn_rand.c:201:12: Call
  199.   int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
  200.   {
  201.       return bnrand(0, rnd, bits, top, bottom);
                    ^
  202.   }
  203.   

crypto/bn/bn_rand.c:118:1: Parameter `*rnd->d`
    116.   #include <openssl/sha.h>
    117.   
    118. > static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
    119.   {
    120.       unsigned char *buf = NULL;

crypto/bn/bn_rand.c:190:10: Call
    188.       if (bottom)                 /* set bottom bit if requested */
    189.           buf[bytes - 1] |= 1;
    190.       if (!BN_bin2bn(buf, bytes, rnd))
                    ^
    191.           goto err;
    192.       ret = 1;

crypto/bn/bn_lib.c:541:1: Parameter `*ret->d`
      539.   }
      540.   
      541. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
      542.   {
      543.       unsigned int i, m;

crypto/bn/bn_lib.c:563:9: Call
      561.       i = ((n - 1) / BN_BYTES) + 1;
      562.       m = ((n - 1) % (BN_BYTES));
      563.       if (bn_wexpand(ret, (int)i) == NULL) {
                     ^
      564.           BN_free(bn);
      565.           return NULL;

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_rand` 
            349.               a1 = B[1];
            350.               a2 = B[2];
            351.               a3 = B[3];
                                    ^
            352.               A[0] = a0;
            353.               A[1] = a1;
