зеркало из https://github.com/mozilla/pjs.git
Bug 717121 - crash nsMIMEHeaderParamImpl::DoParameterInternal. r=bz
This commit is contained in:
Родитель
fdc0286fdd
Коммит
b1f4575438
|
@ -308,7 +308,10 @@ nsMIMEHeaderParamImpl::DoParameterInternal(const char *aHeaderValue,
|
|||
else if (*valueEnd == '"')
|
||||
break;
|
||||
}
|
||||
str = valueEnd + 1;
|
||||
str = valueEnd;
|
||||
// *valueEnd != null means that *valueEnd is quote character.
|
||||
if (*valueEnd)
|
||||
str++;
|
||||
}
|
||||
|
||||
// See if this is the simplest case (case A above),
|
||||
|
|
|
@ -296,6 +296,11 @@ var tests = [
|
|||
|
||||
["attachment; filename*=\"a%20b\"",
|
||||
"attachment", "a b"],
|
||||
|
||||
// Bug 717121: crash nsMIMEHeaderParamImpl::DoParameterInternal
|
||||
|
||||
["attachment; filename=\"",
|
||||
"attachment", ""],
|
||||
];
|
||||
|
||||
function do_tests(whichRFC)
|
||||
|
|
Загрузка…
Ссылка в новой задаче