summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-10-28 10:08:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-28 18:42:47 +0100
commitcb24239ef0744c9dfa2d0beae850791adc6edc21 (patch)
treea24dbb08584b5728e1421ed0362da41c46c090b8
parente7f27f96f0789939436cf1cb3dff79579a67cf3d (diff)
cid#1606943 Overflowed constant
Change-Id: If097a933e8d856e4528313cd351959ceb9041b27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175718 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
-rw-r--r--tools/source/generic/config.cxx1
1 files changed, 1 insertions, 0 deletions
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 == '\t') )