sd/source/filter/ppt/propread.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 1bbf42240efe8f48a1a761faa6c8a03dc9b1b5a7 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Aug 29 21:03:43 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Sep 11 14:14:44 2024 +0200 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.mcnam...@collabora.com> 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())