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:146:1: Parameter `num`
  144.   }
  145.   
  146. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
  147.   {
  148.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:148:17: Call
  146.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
  147.   {
  148.       void *ret = CRYPTO_malloc(num, file, line);
                         ^
  149.   
  150.       if (ret != NULL)

crypto/mem.c:127:9: Assignment
    125.   
    126.       if (num <= 0)
    127.           return NULL;
                   ^
    128.   
    129.       allow_customize = 0;

crypto/mem.c:148:5: Assignment
  146.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
  147.   {
  148.       void *ret = CRYPTO_malloc(num, file, line);
             ^
  149.   
  150.       if (ret != NULL)

crypto/mem.c:152:5: Assignment
  150.       if (ret != NULL)
  151.           memset(ret, 0, num);
  152.       return ret;
             ^
  153.   }
  154.   

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.           switch (b->top & 3) {
