[Libreoffice-commits] core.git: lotuswordpro/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 26 19:40:45 UTC 2021


 lotuswordpro/source/filter/lwpobjstrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4c9e40653c0defd8b2b3223b32a3662bcd998837
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 26 15:41:59 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 26 20:39:57 2021 +0100

    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 at redhat.com>

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)


More information about the Libreoffice-commits mailing list