diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-18 11:21:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-19 09:42:48 +0200 |
commit | aab3c9be2234049cf848ddce57ccd507edd26e0e (patch) | |
tree | f83a233e5c4220c125bb8e523c9001b4e14c6e02 /vcl/source/gdi/pdfwriter_impl.cxx | |
parent | 21ac405d723448d4f725715d27b58015f4bb5764 (diff) |
cid#1448527 Unchecked return value
Change-Id: I024b2cc088027cfb74dc009220e75e24b7228ea2
Reviewed-on: https://gerrit.libreoffice.org/75902
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index f7a619b6f3be..4e054f673ca0 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -5181,8 +5181,10 @@ sal_Int32 PDFWriterImpl::emitOutputIntent() bool written = writeBuffer( aBuffer.data(), static_cast<sal_Int32>(aBuffer.size()) ); disableStreamEncryption(); endCompression(); + sal_uInt64 nEndStreamPos = 0; - m_aFile.getPos(nEndStreamPos); + if (m_aFile.getPos(nEndStreamPos) != osl::File::E_None) + return 0; if( !written ) return 0; |