diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-28 10:03:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-28 12:14:44 +0100 |
commit | 79b28add29132e9fc3d5e9b445a72162f57cd6b4 (patch) | |
tree | 03938dce514671063cf7254072070ee5a70b2f58 | |
parent | 286d8207d5ce6c4c76578ed3e88dce4ab5511052 (diff) |
cid#1606697 Overflowed constant
Change-Id: Icc71db8d231737d8a401da05e836a552e31a4875
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175716
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 3a5c434ba303..34d761d11e66 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -2849,6 +2849,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p goto done; else if (rtl::isAsciiDigit(*p) && nDigits < 3) { + assert(nNumber < 999); nNumber = 10 * nNumber + INetMIME::getWeight(*p); ++nDigits; } |