|
|
|
|
@ -1322,7 +1322,7 @@ static int ProcessBase64BodyLine(const uint8_t *buf, uint32_t len,
|
|
|
|
|
/* First process remaining from previous line. We will consume
|
|
|
|
|
* state->bvremain, filling it from 'buf' until we have a properly
|
|
|
|
|
* sized block. Spaces are skipped (rfc2045). If state->bvr_len
|
|
|
|
|
* is not 0 after procesing we have no data left at 'buf'. */
|
|
|
|
|
* is not 0 after processing we have no data left at 'buf'. */
|
|
|
|
|
if (state->bvr_len > 0) {
|
|
|
|
|
uint32_t consumed = ProcessBase64Remainder(buf, len, state, 0);
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(consumed > len);
|
|
|
|
|
@ -1510,7 +1510,7 @@ static int ProcessQuotedPrintableBodyLine(const uint8_t *buf, uint32_t len,
|
|
|
|
|
state->data_chunk_len += EOL_LEN;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Account for extra 2 characters in 3-characted QP
|
|
|
|
|
/* Account for extra 2 characters in 3-character QP
|
|
|
|
|
* sequence */
|
|
|
|
|
remaining -= 2;
|
|
|
|
|
offset += 2;
|
|
|
|
|
|