diff --git a/src/util-decode-mime.c b/src/util-decode-mime.c index 9c6a1103c3..2be9852c04 100644 --- a/src/util-decode-mime.c +++ b/src/util-decode-mime.c @@ -1226,6 +1226,9 @@ static uint8_t ProcessBase64Remainder( memcpy(state->bvremain, block, cnt); } state->bvr_len = cnt; + } else if (!force && cnt != B64_BLOCK) { + SCLogDebug("incomplete data and no buffer to backfill"); + return 0; } /* in force mode pad the block */