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
751b7205
Kaydet (Commit)
751b7205
authored
Eki 11, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#41642 detect loops in StgDirStrm entry chains
üst
761b7e39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
stgdir.cxx
sot/source/sdstor/stgdir.cxx
+12
-4
No files found.
sot/source/sdstor/stgdir.cxx
Dosyayı görüntüle @
751b7205
...
...
@@ -820,6 +820,14 @@ void StgDirStrm::SetupEntry( sal_Int32 n, StgDirEntry* pUpper )
if
(
nLeaf
!=
0
&&
nLeft
!=
0
&&
nRight
!=
0
)
{
//fdo#41642 Do we need to check full chain upwards for loops ?
if
(
pUpper
&&
pUpper
->
aEntry
.
GetLeaf
(
STG_CHILD
)
==
nLeaf
)
{
OSL_FAIL
(
"Leaf node of upper StgDirEntry is same as current StgDirEntry's leaf node. Circular entry chain, discarding link"
);
delete
pCur
;
return
;
}
if
(
StgAvlNode
::
Insert
(
(
StgAvlNode
**
)
(
pUpper
?
&
pUpper
->
pDown
:
&
pRoot
),
pCur
)
)
{
...
...
@@ -829,10 +837,10 @@ void StgDirStrm::SetupEntry( sal_Int32 n, StgDirEntry* pUpper )
else
{
// bnc#682484: There are some really broken docs out there
// that contain duplicate entries in 'Directory' section
// so don't set the error flag here and just skip those
// (was: rIo.SetError( SVSTREAM_CANNOT_MAKE );)
delete
pCur
;
pCur
=
NULL
;
// that contain duplicate entries in 'Directory' section
// so don't set the error flag here and just skip those
// (was: rIo.SetError( SVSTREAM_CANNOT_MAKE );)
delete
pCur
;
return
;
}
SetupEntry
(
nLeft
,
pUpper
);
...
...
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