Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 717121 - crash nsMIMEHeaderParamImpl::DoParameterInternal. r=bz,a…

…=Standard8 for checkin to Thunderbird/SeaMonkey specific relbrach and CLOSED TREE

--HG--
branch : COMM1002_2012021610_RELBRANCH
extra : transplant_source : %07%D0%EF%D0%93%FFv%835%B9%A9%FCka/%7D%1D%8D%FC%89
  • Loading branch information...
commit 62349c32bbdae00dbd9796daca2b830e519198c5 1 parent 5cb3f65
Makoto Kato makotokato authored
5 netwerk/mime/nsMIMEHeaderParamImpl.cpp
View
@@ -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),
5 netwerk/test/unit/test_MIME_params.js
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.