Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
05661623
Kaydet (Commit)
05661623
authored
Haz 05, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uncaught exceptions in parallel deflate threads on re-export of HTB23106 odgs
Change-Id: Ib6aef478b8dcf1c7a7262ab60eef4d44da0de632
üst
1af10d40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
ZipOutputEntry.hxx
package/inc/ZipOutputEntry.hxx
+4
-0
ZipOutputStream.cxx
package/source/zipapi/ZipOutputStream.cxx
+6
-0
ZipPackageStream.cxx
package/source/zippackage/ZipPackageStream.cxx
+10
-2
No files found.
package/inc/ZipOutputEntry.hxx
Dosyayı görüntüle @
05661623
...
...
@@ -42,6 +42,7 @@ class ZipOutputEntry
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XCipherContext
>
m_xCipherContext
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XDigestContext
>
m_xDigestContext
;
::
css
::
uno
::
Any
m_aParallelDeflateException
;
CRC32
m_aCRC
;
ZipEntry
*
m_pCurrentEntry
;
...
...
@@ -62,6 +63,9 @@ public:
ZipPackageStream
*
getZipPackageStream
()
{
return
m_pCurrentStream
;
}
bool
isEncrypt
()
{
return
m_bEncryptCurrentEntry
;
}
void
setParallelDeflateException
(
const
::
css
::
uno
::
Any
&
rAny
)
{
m_aParallelDeflateException
=
rAny
;
}
::
css
::
uno
::
Any
getParallelDeflateException
()
const
{
return
m_aParallelDeflateException
;
}
void
closeEntry
();
void
write
(
const
css
::
uno
::
Sequence
<
sal_Int8
>&
rBuffer
);
...
...
package/source/zipapi/ZipOutputStream.cxx
Dosyayı görüntüle @
05661623
...
...
@@ -23,6 +23,7 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
#include <comphelper/storagehelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <osl/diagnose.h>
#include <osl/time.h>
...
...
@@ -101,6 +102,11 @@ void ZipOutputStream::finish()
m_rSharedThreadPool
.
waitUntilEmpty
();
for
(
size_t
i
=
0
;
i
<
m_aEntries
.
size
();
i
++
)
{
//Any exceptions thrown in the threads were caught and stored for now
::
css
::
uno
::
Any
aCaughtException
(
m_aEntries
[
i
]
->
getParallelDeflateException
());
if
(
aCaughtException
.
hasValue
())
::
cppu
::
throwException
(
aCaughtException
);
writeLOC
(
m_aEntries
[
i
]
->
getZipEntry
(),
m_aEntries
[
i
]
->
isEncrypt
());
sal_Int32
nRead
;
...
...
package/source/zippackage/ZipPackageStream.cxx
Dosyayı görüntüle @
05661623
...
...
@@ -46,6 +46,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/seekableinput.hxx>
#include <comphelper/storagehelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
...
...
@@ -471,8 +472,15 @@ public:
private
:
virtual
void
doWork
()
SAL_OVERRIDE
{
deflateZipEntry
(
mpEntry
,
mxInStream
);
mxInStream
.
clear
();
try
{
deflateZipEntry
(
mpEntry
,
mxInStream
);
mxInStream
.
clear
();
}
catch
(
const
uno
::
Exception
&
rException
)
{
mpEntry
->
setParallelDeflateException
(
::
cppu
::
getCaughtException
());
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment