summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/source/fsys/urlobj.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 5e200867a5cc..84a89cd32808 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2656,6 +2656,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p
}
else if (rtl::isAsciiHexDigit(*p) && nDigits < 4)
{
+ assert(nNumber < 0xffff);
nNumber = 16 * nNumber + INetMIME::getHexWeight(*p);
++nDigits;
}
@@ -2719,6 +2720,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p
}
else if (rtl::isAsciiDigit(*p) && nDigits < 3)
{
+ assert(nNumber < 0xfff);
nNumber = 16 * nNumber + INetMIME::getWeight(*p);
++nDigits;
}
@@ -2752,6 +2754,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p
}
else if (rtl::isAsciiHexDigit(*p) && nDigits < 4)
{
+ assert(nNumber < 0xffff);
nNumber = 16 * nNumber + INetMIME::getHexWeight(*p);
++nDigits;
}
@@ -2809,6 +2812,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p
}
else if (rtl::isAsciiDigit(*p) && nDigits < 3)
{
+ assert(nNumber < 0xfff);
nNumber = 16 * nNumber + INetMIME::getWeight(*p);
++nDigits;
}