[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 24 15:21:16 UTC 2021
lotuswordpro/source/filter/tocread.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit ba5d6da97c8c7ed59592d47ab5cd495c79ef262d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Mar 24 08:54:17 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Mar 24 16:20:15 2021 +0100
cid#1222240 silence bogus Untrusted divisor
Change-Id: Ib828267bdb47414cf4ace0756e5cfd519f679643
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113022
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/lotuswordpro/source/filter/tocread.cxx b/lotuswordpro/source/filter/tocread.cxx
index 53f7e2b929f8..2942005df391 100644
--- a/lotuswordpro/source/filter/tocread.cxx
+++ b/lotuswordpro/source/filter/tocread.cxx
@@ -494,9 +494,12 @@ CBenTOCReader::GetCode()
return BEN_READ_PAST_END_OF_TOC;
if (Code == BEN_END_OF_BUFFER)
+ {
+ assert(cBlockSize && "cBlockSize of 0 should have already caused BenErr_UnknownBentoFormatVersion in CBenTOCReader::ReadLabel");
// Advance to next block
cCurr = cBlockSize * ((cCurr + (cBlockSize - 1)) /
cBlockSize);
+ }
}
while (Code == BEN_NOOP || Code == BEN_END_OF_BUFFER);
return Code;
More information about the Libreoffice-commits
mailing list