From a4bebe3ee9004c3d36ff9daa0bb37c33b96ea4bf Mon Sep 17 00:00:00 2001 From: Max Lv Date: Thu, 9 Mar 2017 11:15:36 +0800 Subject: [PATCH] Refine assertion --- src/aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aead.c b/src/aead.c index d32665e2..d49b349d 100644 --- a/src/aead.c +++ b/src/aead.c @@ -477,7 +477,7 @@ aead_chunk_encrypt(cipher_ctx_t *ctx, uint8_t *p, uint8_t *c, size_t nlen = ctx->cipher->nonce_len; size_t tlen = ctx->cipher->tag_len; - assert(plen + tlen < CHUNK_SIZE_MASK); + assert(plen <= CHUNK_SIZE_MASK); int err; size_t clen;