tools/source/generic/config.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit cb24239ef0744c9dfa2d0beae850791adc6edc21
Author: Noel Grandin <[email protected]>
AuthorDate: Mon Oct 28 10:08:02 2024 +0200
Commit: Noel Grandin <[email protected]>
CommitDate: Mon Oct 28 18:42:47 2024 +0100
cid#1606943 Overflowed constant
Change-Id: If097a933e8d856e4528313cd351959ceb9041b27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175718
Reviewed-by: Noel Grandin <[email protected]>
Tested-by: Jenkins
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index cc5cce9c3b16..00b3aef2c2c7 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -252,6 +252,7 @@ static void ImplMakeConfigList( ImplConfigData* pData,
// filter group names
pLine++;
+ assert(nLineLen > 0);
nLineLen--;
// remove spaces and tabs
while ( (*pLine == ' ') || (*pLine == ' ') )