|
|
@ -335,6 +335,7 @@ public class BASE64DecoderStream extends FilterInputStream {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private int getByte() throws IOException {
|
|
|
|
private int getByte() throws IOException {
|
|
|
|
int c;
|
|
|
|
int c;
|
|
|
|
|
|
|
|
int bad = 0;
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
if (input_pos >= input_len) {
|
|
|
|
if (input_pos >= input_len) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -353,6 +354,8 @@ public class BASE64DecoderStream extends FilterInputStream {
|
|
|
|
return -2;
|
|
|
|
return -2;
|
|
|
|
// no, convert it
|
|
|
|
// no, convert it
|
|
|
|
c = pem_convert_array[c];
|
|
|
|
c = pem_convert_array[c];
|
|
|
|
|
|
|
|
if (c == -1 && ++bad > 10 && eu.faircode.email.BuildConfig.DEBUG)
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
// loop until we get a legitimate byte
|
|
|
|
// loop until we get a legitimate byte
|
|
|
|
} while (c == -1);
|
|
|
|
} while (c == -1);
|
|
|
|
return c;
|
|
|
|
return c;
|
|
|
|