crypto/evp/e_aes.c:1896: error: BUFFER_OVERRUN_L3
  Offset added: [2, 16] Size: [0, +oo] by call to `CRYPTO_ccm128_tag`.
Showing all 7 steps of the trace


crypto/evp/e_aes.c:1860:1: Parameter `arg`
1858.       BLOCK_CIPHER_custom(NID_aes, 256, 1, 16, xts, XTS, XTS_FLAGS)
1859.   
1860. > static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
1861.   {
1862.       EVP_AES_CCM_CTX *cctx = c->cipher_data;

crypto/evp/e_aes.c:1896:14: Call
1894.           if (!c->encrypt || !cctx->tag_set)
1895.               return 0;
1896.           if (!CRYPTO_ccm128_tag(&cctx->ccm, ptr, (size_t)arg))
                     ^
1897.               return 0;
1898.           cctx->tag_set = 0;

crypto/modes/ccm128.c:469:1: <Offset trace>
467.   }
468.   
469. > size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len)
470.   {
471.       unsigned int M = (ctx->nonce.c[0] >> 3) & 7; /* the M parameter */

crypto/modes/ccm128.c:469:1: Parameter `len`
  467.   }
  468.   
  469. > size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len)
  470.   {
  471.       unsigned int M = (ctx->nonce.c[0] >> 3) & 7; /* the M parameter */

crypto/modes/ccm128.c:469:1: <Length trace>
467.   }
468.   
469. > size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len)
470.   {
471.       unsigned int M = (ctx->nonce.c[0] >> 3) & 7; /* the M parameter */

crypto/modes/ccm128.c:469:1: Parameter `ctx->cmac.c[*]`
  467.   }
  468.   
  469. > size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len)
  470.   {
  471.       unsigned int M = (ctx->nonce.c[0] >> 3) & 7; /* the M parameter */

crypto/modes/ccm128.c:477:5: Array access: Offset added: [2, 16] Size: [0, +oo] by call to `CRYPTO_ccm128_tag` 
  475.       if (len < M)
  476.           return 0;
  477.       memcpy(tag, ctx->cmac.c, M);
             ^
  478.       return M;
  479.   }
