diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-10 10:21:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-10 10:22:32 +0000 |
commit | 1353ebe535732022aef4377030d86ad7153c3144 (patch) | |
tree | fb445f587b59ffc1be35df085e21d1993d1efab6 /lotuswordpro/source/filter/lwpobjstrm.cxx | |
parent | c299011abeb50a9fccb420d6b1e8e82924efc329 (diff) |
ofz#801 avoid oom
Change-Id: Id3167d1eb3f058543ab7596008012d51b3d242b7
Diffstat (limited to 'lotuswordpro/source/filter/lwpobjstrm.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpobjstrm.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwpobjstrm.cxx b/lotuswordpro/source/filter/lwpobjstrm.cxx index 8a28c9fd214a..072edf700dd2 100644 --- a/lotuswordpro/source/filter/lwpobjstrm.cxx +++ b/lotuswordpro/source/filter/lwpobjstrm.cxx @@ -155,6 +155,12 @@ void LwpObjectStream::ReleaseBuffer() } } } + +sal_uInt16 LwpObjectStream::remainingSize() const +{ + return m_nBufSize - m_nReadPos; +} + /** * @descr read len bytes from object stream to buffer */ |