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
dbc6f094
Kaydet (Commit)
dbc6f094
authored
Ock 06, 2011
tarafından
Kurt Zenker
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
CWS-TOOLING: integrate CWS impress208
üst
de86e336
f505d910
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ZipFile.cxx
package/source/zipapi/ZipFile.cxx
+7
-2
No files found.
package/source/zipapi/ZipFile.cxx
Dosyayı görüntüle @
dbc6f094
...
@@ -836,13 +836,18 @@ sal_Int32 ZipFile::recover()
...
@@ -836,13 +836,18 @@ sal_Int32 ZipFile::recover()
aGrabber
.
seek
(
0
);
aGrabber
.
seek
(
0
);
for
(
sal_Int32
nGenPos
=
0
;
aGrabber
.
readBytes
(
aBuffer
,
32000
)
&&
aBuffer
.
getLength
()
>
30
;
)
const
sal_Int32
nToRead
=
32000
;
for
(
sal_Int32
nGenPos
=
0
;
aGrabber
.
readBytes
(
aBuffer
,
nToRead
)
&&
aBuffer
.
getLength
()
>
16
;
)
{
{
const
sal_Int8
*
pBuffer
=
aBuffer
.
getConstArray
();
const
sal_Int8
*
pBuffer
=
aBuffer
.
getConstArray
();
sal_Int32
nBufSize
=
aBuffer
.
getLength
();
sal_Int32
nBufSize
=
aBuffer
.
getLength
();
sal_Int32
nPos
=
0
;
sal_Int32
nPos
=
0
;
while
(
nPos
<
nBufSize
-
16
)
// the buffer should contain at least one header,
// or if it is end of the file, at least the postheader with sizes and hash
while
(
nPos
<
nBufSize
-
30
||
(
aBuffer
.
getLength
()
<
nToRead
&&
nPos
<
nBufSize
-
16
)
)
{
{
if
(
nPos
<
nBufSize
-
30
&&
pBuffer
[
nPos
]
==
'P'
&&
pBuffer
[
nPos
+
1
]
==
'K'
&&
pBuffer
[
nPos
+
2
]
==
3
&&
pBuffer
[
nPos
+
3
]
==
4
)
if
(
nPos
<
nBufSize
-
30
&&
pBuffer
[
nPos
]
==
'P'
&&
pBuffer
[
nPos
+
1
]
==
'K'
&&
pBuffer
[
nPos
+
2
]
==
3
&&
pBuffer
[
nPos
+
3
]
==
4
)
{
{
...
...
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