summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-30 13:01:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-10-30 14:34:28 +0000
commit13f26219a44ef158f26c543ff926e57e5831b477 (patch)
treefb240c415c0c05780fbe5dc64f2700c425f1e2e4 /vcl/source
parentdff10fc454183304dd820d1dfe1e7ac4010c5503 (diff)
coverity#704095 Unchecked return value
Change-Id: I31bfb0b6cdcac78592759824cb74ab62d98fcc7b
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 172eac9f97b3..924260451bc8 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1781,7 +1781,12 @@ void PDFWriterImpl::PDFPage::appendWaveLine( sal_Int32 nWidth, sal_Int32 nY, sal
m_aDigest = rtl_digest_createMD5();
/* the size of the Codec default maximum */
- checkEncryptionBufferSize( 0x4000 );
+ if (!checkEncryptionBufferSize(0x4000))
+ {
+ m_aFile.close();
+ m_bOpen = false;
+ return;
+ }
if( xEnc.is() )
prepareEncryption( xEnc );