mime: fix corner case

Fix a corner case where a base64 sequence including a space was followed
by a newline in the input data.
pull/7586/head
Victor Julien 2 years ago
parent 5805ed47f5
commit d81582c4a2

@ -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 */

Loading…
Cancel
Save