icecat: add release icecat-140.9.0-1gnu1 for ecne
This commit is contained in:
parent
8eb1f1732f
commit
a5f93cb214
1197 changed files with 30593 additions and 15344 deletions
|
|
@ -3400,8 +3400,20 @@ nsresult nsStandardURL::ReadPrivate(nsIObjectInputStream* stream) {
|
|||
}
|
||||
mSupportsFileURL = supportsFileURL;
|
||||
|
||||
if (!IsValid()) {
|
||||
return NS_ERROR_MALFORMED_URI;
|
||||
}
|
||||
|
||||
// wait until object is set up, then modify path to include the param
|
||||
if (old_param.mLen >= 0) { // note that mLen=0 is ";"
|
||||
// old_param is a local; IsValid() doesn't check it. Bounds-check
|
||||
// explicitly.
|
||||
CheckedInt<uint32_t> end = CheckedInt<uint32_t>(uint32_t(old_param.mPos)) +
|
||||
uint32_t(old_param.mLen);
|
||||
if (!end.isValid() || end.value() > mSpec.Length()) {
|
||||
return NS_ERROR_MALFORMED_URI;
|
||||
}
|
||||
|
||||
// If this wasn't empty, it marks characters between the end of the
|
||||
// file and start of the query - mPath should include the param,
|
||||
// query and ref already. Bump the mFilePath and
|
||||
|
|
@ -3417,10 +3429,6 @@ nsresult nsStandardURL::ReadPrivate(nsIObjectInputStream* stream) {
|
|||
return rv;
|
||||
}
|
||||
|
||||
if (!IsValid()) {
|
||||
return NS_ERROR_MALFORMED_URI;
|
||||
}
|
||||
|
||||
clearOnExit.release();
|
||||
|
||||
return NS_OK;
|
||||
|
|
@ -3656,11 +3664,6 @@ bool nsStandardURL::Deserialize(const URIParams& aParams) {
|
|||
|
||||
mSupportsFileURL = params.supportsFileURL();
|
||||
|
||||
nsresult rv = CheckIfHostIsAscii();
|
||||
if (NS_FAILED(rv)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Some sanity checks
|
||||
NS_ENSURE_TRUE(mScheme.mPos == 0, false);
|
||||
NS_ENSURE_TRUE(mScheme.mLen > 0, false);
|
||||
|
|
@ -3683,6 +3686,11 @@ bool nsStandardURL::Deserialize(const URIParams& aParams) {
|
|||
return false;
|
||||
}
|
||||
|
||||
nsresult rv = CheckIfHostIsAscii();
|
||||
if (NS_FAILED(rv)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
clearOnExit.release();
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue