mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 717121 - crash nsMIMEHeaderParamImpl::DoParameterInternal. r=bz
This commit is contained in:
parent
bf06aefe68
commit
41d240e25b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user