summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-03-24 18:30:40 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-03-24 18:30:40 +0200
commit18bacca5ca066c6fb1b38a82e322b624923b7340 (patch)
tree34acae607dc8a6ceb6937ae29019662aa6c73dbd /indra/llcommon
parent078c5a2cb7cac57a1a0f7c89a77dd460a4c3a3ba (diff)
MAINT-5023 URIparser crash in LLUrlEntryBase::urlToLabelWithGreyQuery
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/lluriparser.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llcommon/lluriparser.cpp b/indra/llcommon/lluriparser.cpp
index d07288f123..08b19c56e0 100644
--- a/indra/llcommon/lluriparser.cpp
+++ b/indra/llcommon/lluriparser.cpp
@@ -118,6 +118,12 @@ void LLUriParser::fragment(const std::string& s)
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;
if (len)
{
@@ -128,6 +134,12 @@ void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str)
void LLUriParser::extractParts()
{
+ if(&mUri == NULL)
+ {
+ LL_WARNS() << "mUri is NULL for uri: " << mNormalizedUri << LL_ENDL;
+ return;
+ }
+
if (mTmpScheme)
{
mScheme.clear();