crypto/evp/e_aes.c:2044: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 2):unsigned32 by call to `CRYPTO_ccm128_init`.
Showing all 4 steps of the trace


crypto/evp/e_aes.c:2044:17: Call
2042.                                         &cctx->ks.ks);
2043.   
2044.                   CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L,
                        ^
2045.                                      &cctx->ks, (block128_f) HWAES_encrypt);
2046.                   cctx->str = NULL;

crypto/modes/ccm128.c:65:1: <LHS trace>
63.    * called once per session setup...
64.    */
65. > void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,
66.                           unsigned int M, unsigned int L, void *key,
67.                           block128_f block)

crypto/modes/ccm128.c:65:1: Parameter `M`
  63.    * called once per session setup...
  64.    */
  65. > void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,
  66.                           unsigned int M, unsigned int L, void *key,
  67.                           block128_f block)

crypto/modes/ccm128.c:70:5: Binary operation: ([0, +oo] - 2):unsigned32 by call to `CRYPTO_ccm128_init` 
  68.   {
  69.       memset(ctx->nonce.c, 0, sizeof(ctx->nonce.c));
  70.       ctx->nonce.c[0] = ((u8)(L - 1) & 7) | (u8)(((M - 2) / 2) & 7) << 3;
            ^
  71.       ctx->blocks = 0;
  72.       ctx->block = block;

void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,
                        unsigned int M, unsigned int L, void *key,
                        block128_f block)
{
    memset(ctx->nonce.c, 0, sizeof(ctx->nonce.c));
    ctx->nonce.c[0] = ((u8)(L - 1) & 7) | (u8)(((M - 2) / 2) & 7) << 3;
    ctx->blocks = 0;
    ctx->block = block;
    ctx->key = key;
}
['static int aes_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,\n                            const unsigned char *iv, int enc)\n{\n    EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx);\n    if (!iv && !key)\n        return 1;\n    if (key)\n        do {\n# ifdef HWAES_CAPABLE\n            if (HWAES_CAPABLE) {\n                HWAES_set_encrypt_key(key, EVP_CIPHER_CTX_key_length(ctx) * 8,\n                                      &cctx->ks.ks);\n                CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L,\n                                   &cctx->ks, (block128_f) HWAES_encrypt);\n                cctx->str = NULL;\n                cctx->key_set = 1;\n                break;\n            } else\n# endif\n# ifdef VPAES_CAPABLE\n            if (VPAES_CAPABLE) {\n                vpaes_set_encrypt_key(key, EVP_CIPHER_CTX_key_length(ctx) * 8,\n                                      &cctx->ks.ks);\n                CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L,\n                                   &cctx->ks, (block128_f) vpaes_encrypt);\n                cctx->str = NULL;\n                cctx->key_set = 1;\n                break;\n            }\n# endif\n            AES_set_encrypt_key(key, EVP_CIPHER_CTX_key_length(ctx) * 8,\n                                &cctx->ks.ks);\n            CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L,\n                               &cctx->ks, (block128_f) AES_encrypt);\n            cctx->str = NULL;\n            cctx->key_set = 1;\n        } while (0);\n    if (iv) {\n        memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), iv, 15 - cctx->L);\n        cctx->iv_set = 1;\n    }\n    return 1;\n}', 'void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,\n                        unsigned int M, unsigned int L, void *key,\n                        block128_f block)\n{\n    memset(ctx->nonce.c, 0, sizeof(ctx->nonce.c));\n    ctx->nonce.c[0] = ((u8)(L - 1) & 7) | (u8)(((M - 2) / 2) & 7) << 3;\n    ctx->blocks = 0;\n    ctx->block = block;\n    ctx->key = key;\n}']