tools/source/fsys/urlobj.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 79b28add29132e9fc3d5e9b445a72162f57cd6b4 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Oct 28 10:03:40 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Oct 28 12:14:44 2024 +0100
cid#1606697 Overflowed constant Change-Id: Icc71db8d231737d8a401da05e836a552e31a4875 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175716 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins 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; }