diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-24 08:54:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-24 16:20:15 +0100 |
commit | ba5d6da97c8c7ed59592d47ab5cd495c79ef262d (patch) | |
tree | 9bcd46544689ddb8c95256c0d388e57413622935 /lotuswordpro/source | |
parent | 66db90c01d6d5b1b70004c02954221d4fbc8a196 (diff) |
cid#1222240 silence bogus Untrusted divisor
Change-Id: Ib828267bdb47414cf4ace0756e5cfd519f679643
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113022
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/tocread.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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; |