diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-30 09:34:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-01 15:55:04 +0200 |
commit | fcd432494a6e760afbf2206dea3a1f07ffe92c03 (patch) | |
tree | bdee107d23ad33f9d43e2c896c0120ce2e9f2fa3 /connectivity | |
parent | 881f924e6bfc2ba6f22ea3d1199848095a1a2110 (diff) |
cid#1607035 silence Overflowed integer argument
Change-Id: Iddf32ee09c8cbc4a7f80c943a0e472f018881be5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172716
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/dbase/dindexnode.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/dbase/dindexnode.cxx b/connectivity/source/drivers/dbase/dindexnode.cxx index 1e7add25e42f..6eb435765fa6 100644 --- a/connectivity/source/drivers/dbase/dindexnode.cxx +++ b/connectivity/source/drivers/dbase/dindexnode.cxx @@ -411,8 +411,8 @@ void ONDXPage::Delete(sal_uInt16 nNodePos) else { // merge with right neighbour - Merge(nParentNodePos + 1,((*aParent)[nParentNodePos + 1].GetChild(&rIndex,aParent))); - nParentNodePos++; + nParentNodePos = o3tl::sanitizing_inc(nParentNodePos); + Merge(nParentNodePos,((*aParent)[nParentNodePos].GetChild(&rIndex,aParent))); } if (HasParent() && !(*aParent)[nParentNodePos].HasChild()) aParent->Delete(nParentNodePos); |