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
fc943ea8
Kaydet (Commit)
fc943ea8
authored
Ara 09, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
guard against corrupt RootData
Change-Id: Iad2788a7e5e7ee3b3107eab37cde2d3d38eae005
üst
ff39b78d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lwpidxmgr.cxx
lotuswordpro/source/filter/lwpidxmgr.cxx
+4
-1
lwptabrack.cxx
lotuswordpro/source/filter/lwptabrack.cxx
+1
-1
No files found.
lotuswordpro/source/filter/lwpidxmgr.cxx
Dosyayı görüntüle @
fc943ea8
...
@@ -152,7 +152,10 @@ void LwpIndexManager::ReadRootData(LwpObjectStream* pObjStrm)
...
@@ -152,7 +152,10 @@ void LwpIndexManager::ReadRootData(LwpObjectStream* pObjStrm)
sal_uInt16
KeyCount
=
pObjStrm
->
QuickReaduInt16
();
sal_uInt16
KeyCount
=
pObjStrm
->
QuickReaduInt16
();
m_nLeafCount
=
KeyCount
?
KeyCount
+
1
:
0
;
m_nLeafCount
=
KeyCount
?
KeyCount
+
1
:
0
;
if
(
KeyCount
)
if
(
m_nLeafCount
>
SAL_N_ELEMENTS
(
m_ChildIndex
))
throw
std
::
range_error
(
"corrupt RootData"
);
if
(
KeyCount
)
{
{
//read object keys
//read object keys
LwpKey
*
akey
=
new
LwpKey
();
LwpKey
*
akey
=
new
LwpKey
();
...
...
lotuswordpro/source/filter/lwptabrack.cxx
Dosyayı görüntüle @
fc943ea8
...
@@ -92,7 +92,7 @@ void LwpTabRack::Read()
...
@@ -92,7 +92,7 @@ void LwpTabRack::Read()
m_nNumTabs
=
m_pObjStrm
->
QuickReaduInt16
();
m_nNumTabs
=
m_pObjStrm
->
QuickReaduInt16
();
if
(
m_nNumTabs
>
MaxTabs
)
if
(
m_nNumTabs
>
MaxTabs
)
throw
std
::
out_of_range
(
"corrupt LwpTabRack"
);
throw
std
::
range_error
(
"corrupt LwpTabRack"
);
for
(
int
i
=
0
;
i
<
m_nNumTabs
;
++
i
)
for
(
int
i
=
0
;
i
<
m_nNumTabs
;
++
i
)
{
{
m_aTabs
[
i
].
Read
(
m_pObjStrm
);
m_aTabs
[
i
].
Read
(
m_pObjStrm
);
...
...
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