crypto/evp/e_aes.c:1764: error: BUFFER_OVERRUN_S2
  Offset added: [max(4, `arg`), min(16, `arg`)] Size: [0, +oo].
Showing all 5 steps of the trace


crypto/evp/e_aes.c:1734:1: <Offset trace>
1732.   BLOCK_CIPHER_custom(NID_aes,256,1,16,xts,XTS,EVP_CIPH_FLAG_FIPS|XTS_FLAGS)
1733.   
1734. > static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
1735.   	{
1736.   	EVP_AES_CCM_CTX *cctx = c->cipher_data;

crypto/evp/e_aes.c:1734:1: Parameter `arg`
1732.   BLOCK_CIPHER_custom(NID_aes,256,1,16,xts,XTS,EVP_CIPH_FLAG_FIPS|XTS_FLAGS)
1733.   
1734. > static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
1735.   	{
1736.   	EVP_AES_CCM_CTX *cctx = c->cipher_data;

crypto/evp/e_aes.c:1734:1: <Length trace>
1732.   BLOCK_CIPHER_custom(NID_aes,256,1,16,xts,XTS,EVP_CIPH_FLAG_FIPS|XTS_FLAGS)
1733.   
1734. > static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
1735.   	{
1736.   	EVP_AES_CCM_CTX *cctx = c->cipher_data;

crypto/evp/e_aes.c:1734:1: Parameter `c->buf[*]`
1732.   BLOCK_CIPHER_custom(NID_aes,256,1,16,xts,XTS,EVP_CIPH_FLAG_FIPS|XTS_FLAGS)
1733.   
1734. > static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
1735.   	{
1736.   	EVP_AES_CCM_CTX *cctx = c->cipher_data;

crypto/evp/e_aes.c:1764:4: Array access: Offset added: [max(4, arg), min(16, arg)] Size: [0, +oo]
1762.   			{
1763.   			cctx->tag_set = 1;
1764.   			memcpy(c->buf, ptr, arg);
           ^
1765.   			}
1766.   		cctx->M = arg;
