cid#1606697 silence Overflowed constant
Change-Id: I81d0b10f8e0c34f9d276e59b5eed2c3d879f05cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176195 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
This commit is contained in:
parent
6ec7e5bb89
commit
54f5e44f58
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue