crypto/rsa/rsa_ossl.c:418: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 67108856] by call to `rsa_blinding_convert`.
Showing all 25 steps of the trace


crypto/rsa/rsa_ossl.c:396:9: Call
394.   
395.       /* make data into a big number */
396.       if (BN_bin2bn(from, (int)flen, f) == NULL)
               ^
397.           goto err;
398.   

crypto/bn/bn_lib.c:407:1: Parameter `ret->top`
  405.   }
  406.   
  407. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
  408.   {
  409.       unsigned int i, m;

crypto/rsa/rsa_ossl.c:418:14: Call
416.               goto err;
417.           }
418.           if (!rsa_blinding_convert(blinding, f, unblind, ctx))
                    ^
419.               goto err;
420.       }

crypto/rsa/rsa_ossl.c:185:1: Parameter `unblind->top`
  183.   }
  184.   
  185. > static int rsa_blinding_convert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind,
  186.                                   BN_CTX *ctx)
  187.   {

crypto/rsa/rsa_ossl.c:200:15: Call
  198.   
  199.           BN_BLINDING_lock(b);
  200.           ret = BN_BLINDING_convert_ex(f, unblind, b, ctx);
                       ^
  201.           BN_BLINDING_unlock(b);
  202.   

crypto/bn/bn_blind.c:130:1: Parameter `r->top`
    128.   }
    129.   
    130. > int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx)
    131.   {
    132.       int ret = 1;

crypto/bn/bn_blind.c:148:14: Call
    146.   
    147.       if (r != NULL) {
    148.           if (!BN_copy(r, b->Ai))
                        ^
    149.               ret = 0;
    150.       }

crypto/bn/bn_lib.c:323:1: Parameter `a->top`
      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->top`
        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:950:37: Call
        948.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
        949.   {
        950.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                                   ^
        951.   }
        952.   

crypto/bn/bn_lib.c:284:1: Parameter `b->top`
          282.    */
          283.   
          284. > BIGNUM *bn_expand2(BIGNUM *b, int words)
          285.   {
          286.       bn_check_top(b);

crypto/bn/bn_lib.c:289:23: Call
          287.   
          288.       if (words > b->dmax) {
          289.           BN_ULONG *a = bn_expand_internal(b, words);
                                       ^
          290.           if (!a)
          291.               return NULL;

crypto/bn/bn_lib.c:246:1: <Offset trace>
244.   /* This is used by bn_expand2() */
245.   /* The caller MUST check that words > b->dmax before calling this */
246. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
247.   {
248.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:246:1: Parameter `b->top`
            244.   /* This is used by bn_expand2() */
            245.   /* The caller MUST check that words > b->dmax before calling this */
            246. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
            247.   {
            248.       BN_ULONG *a = NULL;

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

crypto/bn/bn_lib.c:246:1: Parameter `words`
            244.   /* This is used by bn_expand2() */
            245.   /* The caller MUST check that words > b->dmax before calling this */
            246. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
            247.   {
            248.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:263:13: Call
            261.           a = OPENSSL_secure_zalloc(words * sizeof(*a));
            262.       else
            263.           a = OPENSSL_zalloc(words * sizeof(*a));
                               ^
            264.       if (a == NULL) {
            265.           BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE);

crypto/mem.c:186:1: Parameter `num`
              184.   }
              185.   
              186. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
              187.   {
              188.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:188:17: Call
              186.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
              187.   {
              188.       void *ret = CRYPTO_malloc(num, file, line);
                                     ^
              189.   
              190.       FAILTEST();

crypto/mem.c:166:9: Assignment
                164.   
                165.       if (num == 0)
                166.           return NULL;
                               ^
                167.   
                168.       FAILTEST();

crypto/mem.c:188:5: Assignment
              186.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
              187.   {
              188.       void *ret = CRYPTO_malloc(num, file, line);
                         ^
              189.   
              190.       FAILTEST();

crypto/mem.c:193:5: Assignment
              191.       if (ret != NULL)
              192.           memset(ret, 0, num);
              193.       return ret;
                         ^
              194.   }
              195.   

crypto/bn/bn_lib.c:263:9: Assignment
            261.           a = OPENSSL_secure_zalloc(words * sizeof(*a));
            262.       else
            263.           a = OPENSSL_zalloc(words * sizeof(*a));
                           ^
            264.       if (a == NULL) {
            265.           BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE);

crypto/bn/bn_lib.c:271:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `rsa_blinding_convert` 
            269.       assert(b->top <= words);
            270.       if (b->top > 0)
            271.           memcpy(a, b->d, sizeof(*a) * b->top);
                           ^
            272.   
            273.       return a;
