diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-29 21:03:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-11 14:14:44 +0200 |
commit | 1bbf42240efe8f48a1a761faa6c8a03dc9b1b5a7 (patch) | |
tree | 5f8e0944a073967b4e9f68ea4dd101fdff979c36 | |
parent | 43c8ec415a25637231ffa4ae0825fec58431e300 (diff) |
cid#1607928 silence Overflowed constant
Change-Id: I0e2fafbde9e311177f42a4db3477760749021f56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173148
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sd/source/filter/ppt/propread.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx index b9fb96f988aa..5c5da4255fc6 100644 --- a/sd/source/filter/ppt/propread.cxx +++ b/sd/source/filter/ppt/propread.cxx @@ -322,8 +322,9 @@ void Section::Read( SotStorageStream *pStrm ) nSecSize = nStrmSize; } - while (nPropCount--) + while (nPropCount > 0) { + --nPropCount; sal_uInt32 nPropId(0), nPropOfs(0); pStrm->ReadUInt32(nPropId).ReadUInt32(nPropOfs); if (!pStrm->good()) |