crypto/bn/bn_lib.c:346: error: BUFFER_OVERRUN_L3
  Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607].
Showing all 10 steps of the trace


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 `words`
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:318:17: Call
316.           a = A = OPENSSL_secure_zalloc(words * sizeof(*a));
317.       else
318.           a = A = OPENSSL_zalloc(words * sizeof(*a));
                       ^
319.       if (A == NULL) {
320.           BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE);

crypto/mem.c:156:1: Parameter `num`
  154.   }
  155.   
  156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
  157.   {
  158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:17: Call
  156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
  157.   {
  158.       void *ret = CRYPTO_malloc(num, file, line);
                         ^
  159.   
  160.       if (ret != NULL)

crypto/mem.c:124:9: Assignment
    122.   
    123.       if (num <= 0)
    124.           return NULL;
                   ^
    125.   
    126.       allow_customize = 0;

crypto/mem.c:158:5: Assignment
  156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
  157.   {
  158.       void *ret = CRYPTO_malloc(num, file, line);
             ^
  159.   
  160.       if (ret != NULL)

crypto/mem.c:162:5: Assignment
  160.       if (ret != NULL)
  161.           memset(ret, 0, num);
  162.       return ret;
             ^
  163.   }
  164.   

crypto/bn/bn_lib.c:318:13: Assignment
316.           a = A = OPENSSL_secure_zalloc(words * sizeof(*a));
317.       else
318.           a = A = OPENSSL_zalloc(words * sizeof(*a));
                   ^
319.       if (A == NULL) {
320.           BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE);

crypto/bn/bn_lib.c:346:13: Array access: Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607]
344.               A[1] = a1;
345.               A[2] = a2;
346.               A[3] = a3;
                   ^
347.           }
348.           /*
