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
40c85b88
Kaydet (Commit)
40c85b88
authored
Agu 27, 2012
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#53592: Try not to crash on empty m_ZipContent
Change-Id: I9bdc9997e260a75682177c8641695b60df0c81a6
üst
d3300205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
basereader.cxx
shell/source/win32/ooofilereader/basereader.cxx
+6
-3
zipfile.cxx
shell/source/win32/zipfile/zipfile.cxx
+3
-1
No files found.
shell/source/win32/ooofilereader/basereader.cxx
Dosyayı görüntüle @
40c85b88
...
...
@@ -81,9 +81,12 @@ void CBaseReader::Initialize( const std::string& ContentName)
if
(
m_ZipContent
.
empty
())
m_ZipFile
.
GetUncompressedContent
(
ContentName
,
m_ZipContent
);
xml_parser
parser
;
parser
.
set_document_handler
(
this
);
// pass current reader as reader to the sax parser
parser
.
parse
(
&
m_ZipContent
[
0
],
m_ZipContent
.
size
());
if
(
!
m_ZipContent
.
empty
())
{
xml_parser
parser
;
parser
.
set_document_handler
(
this
);
// pass current reader as reader to the sax parser
parser
.
parse
(
&
m_ZipContent
[
0
],
m_ZipContent
.
size
());
}
}
catch
(
std
::
exception
&
#if OSL_DEBUG_LEVEL > 0
...
...
shell/source/win32/zipfile/zipfile.cxx
Dosyayı görüntüle @
40c85b88
...
...
@@ -261,6 +261,8 @@ static bool areHeadersConsistent(const LocalFileHeader &header, const CentralDir
static
bool
findCentralDirectoryEnd
(
StreamInterface
*
stream
)
{
if
(
!
stream
)
return
false
;
stream
->
sseek
(
0
,
SEEK_SET
);
try
{
...
...
@@ -483,7 +485,7 @@ void ZipFile::GetUncompressedContent(
ContentBuffer
.
clear
();
return
;
}
(
void
)
inflateEnd
(
&
strm
);
(
void
)
inflateEnd
(
&
strm
);
}
}
...
...
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