From 4ae705d02df0ddf75b97d0e94add6994626f487e Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 13 Jan 2017 20:47:46 -0500 Subject: tdf#97597: Ensure that each parsing thread has its own buffer. Change-Id: I93077f954a49b3922930e4fc86c80228be0f4dd2 Reviewed-on: https://gerrit.libreoffice.org/33069 Tested-by: Jenkins Reviewed-by: Kohei Yoshida --- package/inc/ZipFile.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package/inc') diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx index 9d1a6da0d2bc..e84ace2abd11 100644 --- a/package/inc/ZipFile.hxx +++ b/package/inc/ZipFile.hxx @@ -64,9 +64,10 @@ class ZipFile const css::uno::Reference < css::uno::XComponentContext > m_xContext; bool bRecoveryMode; + bool mbUseBufferedStream; // aMediaType parameter is used only for raw stream header creation - css::uno::Reference < css::io::XInputStream > createUnbufferedStream( + css::uno::Reference < css::io::XInputStream > createStreamForZipEntry( const rtl::Reference& aMutexHolder, ZipEntry & rEntry, const ::rtl::Reference < EncryptionData > &rData, @@ -102,6 +103,8 @@ public: EntryHash& GetEntryHash() { return aEntries; } + void setUseBufferedStream( bool b ); + void setInputStream ( const css::uno::Reference < css::io::XInputStream >& xNewStream ); css::uno::Reference< css::io::XInputStream > getRawData( ZipEntry& rEntry, -- cgit v1.2.3