Skip to content
Snippets Groups Projects
Commit 18bacca5 authored by Mnikolenko ProductEngine's avatar Mnikolenko ProductEngine
Browse files

MAINT-5023 URIparser crash in LLUrlEntryBase::urlToLabelWithGreyQuery

parent 078c5a2c
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,12 @@ void LLUriParser::fragment(const std::string& s) ...@@ -118,6 +118,12 @@ void LLUriParser::fragment(const std::string& s)
void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str) void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str)
{ {
if(&textRange == NULL)
{
LL_WARNS() << "textRange is NULL for uri: " << mNormalizedUri << LL_ENDL;
return;
}
S32 len = textRange.afterLast - textRange.first; S32 len = textRange.afterLast - textRange.first;
if (len) if (len)
{ {
...@@ -128,6 +134,12 @@ void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str) ...@@ -128,6 +134,12 @@ void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str)
void LLUriParser::extractParts() void LLUriParser::extractParts()
{ {
if(&mUri == NULL)
{
LL_WARNS() << "mUri is NULL for uri: " << mNormalizedUri << LL_ENDL;
return;
}
if (mTmpScheme) if (mTmpScheme)
{ {
mScheme.clear(); mScheme.clear();
......
...@@ -1352,11 +1352,11 @@ bool idle_startup() ...@@ -1352,11 +1352,11 @@ bool idle_startup()
{ {
LLStringUtil::format_map_t args; LLStringUtil::format_map_t args;
args["[NUMBER]"] = llformat("%d", num_retries + 1); args["[NUMBER]"] = llformat("%d", num_retries + 1);
set_startup_status(0.4f, LLTrans::getString("LoginRetrySeedCapGrant", args), gAgent.mMOTD); set_startup_status(0.4f, LLTrans::getString("LoginRetrySeedCapGrant", args), gAgent.mMOTD.c_str());
} }
else else
{ {
set_startup_status(0.4f, LLTrans::getString("LoginRequestSeedCapGrant"), gAgent.mMOTD); set_startup_status(0.4f, LLTrans::getString("LoginRequestSeedCapGrant"), gAgent.mMOTD.c_str());
} }
} }
display_startup(); display_startup();
...@@ -2070,7 +2070,7 @@ bool idle_startup() ...@@ -2070,7 +2070,7 @@ bool idle_startup()
update_texture_fetch(); update_texture_fetch();
set_startup_status(0.60f + 0.30f * timeout_frac, set_startup_status(0.60f + 0.30f * timeout_frac,
LLTrans::getString("LoginPrecaching"), LLTrans::getString("LoginPrecaching"),
gAgent.mMOTD); gAgent.mMOTD.c_str());
display_startup(); display_startup();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment