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
95e6a088
Kaydet (Commit)
95e6a088
authored
Şub 19, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Guard against unsigned ickyness for files less than 1024 bytes
Change-Id: I360fb8db35b36194c4f7ae08c93126e2a7bda853
üst
a062799b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
OOoSpotlightImporter.m
extensions/source/macosx/spotlight/OOoSpotlightImporter.m
+7
-1
No files found.
extensions/source/macosx/spotlight/OOoSpotlightImporter.m
Dosyayı görüntüle @
95e6a088
...
@@ -219,8 +219,14 @@ static bool findCentralDirectoryEnd(NSFileHandle *file)
...
@@ -219,8 +219,14 @@ static bool findCentralDirectoryEnd(NSFileHandle *file)
[
file
seekToFileOffset
:
(
fileLength
-
4
)];
[
file
seekToFileOffset
:
(
fileLength
-
4
)];
unsigned
long
long
limit
;
if
(
fileLength
>
1024
)
limit
=
fileLength
-
1024
;
else
limit
=
0
;
unsigned
long
long
offset
;
unsigned
long
long
offset
;
while
((
offset
=
[
file
offsetInFile
])
>
0
&&
offset
>=
fileLength
-
1024
)
while
((
offset
=
[
file
offsetInFile
])
>
limit
)
{
{
unsigned
signature
=
readInt
(
file
);
unsigned
signature
=
readInt
(
file
);
if
(
signature
==
CDIR_END_SIG
)
if
(
signature
==
CDIR_END_SIG
)
...
...
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