Fix for bug 71090. Patch provided by Denis Antrushin <adu@sparc.spb.su>

Skip over invalid empty encoded-words. R=ducarroz, SR=mscott
This commit is contained in:
ducarroz%netscape.com 2002-01-24 01:22:44 +00:00
parent fd7cdd1838
commit 2bc0f341a6

View File

@ -1203,7 +1203,15 @@ char *intl_decode_mime_part2_str(const char *header,
for (r = q + 2; *r != '?'; r++) {
if (*r < ' ') goto badsyntax;
}
if (r == q + 2 || r[1] != '=') goto badsyntax;
if (r[1] != '=')
goto badsyntax;
else if (r == q + 2) {
// it's empty, skip
begin = r + 2;
last_saw_encoded_word = 1;
continue;
}
if(*q == 'Q' || *q == 'q')
decoded_text = intlmime_decode_q(q+2, r - (q+2));