diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-26 15:41:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-26 20:39:57 +0100 |
commit | 4c9e40653c0defd8b2b3223b32a3662bcd998837 (patch) | |
tree | b77c5405534314c36e5669134f717a06242d800c /lotuswordpro | |
parent | 5da1aa90bd5ee298c06462d880985d2f4f41c79f (diff) |
cid#1474321 make it a little more clear that the size *is* checked
Change-Id: I07632cbb9722f409877a426000eedc47822fdc44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113167
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpobjstrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpobjstrm.cxx b/lotuswordpro/source/filter/lwpobjstrm.cxx index 11cbce4e8c41..728e3a71f8f3 100644 --- a/lotuswordpro/source/filter/lwpobjstrm.cxx +++ b/lotuswordpro/source/filter/lwpobjstrm.cxx @@ -71,7 +71,7 @@ LwpObjectStream::LwpObjectStream(LwpSvStream* pStrm, bool isCompressed, sal_uInt , m_pStrm(pStrm) , m_bCompressed(isCompressed) { - if (size >= IO_BUFFERSIZE) + if (m_nBufSize >= IO_BUFFERSIZE) throw std::range_error("bad Object size"); // read object data from stream if (m_nBufSize > 0) |