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
eea399dd
Kaydet (Commit)
eea399dd
authored
Agu 27, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
check for stream status after a read, not after a seek
Change-Id: I984e99c1a1484547aa4d60bf301167f3cbc9f716
üst
3bc69b1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
hang-4.ppt
sd/qa/unit/data/ppt/pass/hang-4.ppt
+0
-0
propread.cxx
sd/source/filter/ppt/propread.cxx
+15
-10
No files found.
sd/qa/unit/data/ppt/pass/hang-4.ppt
0 → 100644
Dosyayı görüntüle @
eea399dd
File added
sd/source/filter/ppt/propread.cxx
Dosyayı görüntüle @
eea399dd
...
@@ -306,7 +306,7 @@ bool Section::GetDictionary( Dictionary& rDict )
...
@@ -306,7 +306,7 @@ bool Section::GetDictionary( Dictionary& rDict )
void
Section
::
Read
(
SotStorageStream
*
pStrm
)
void
Section
::
Read
(
SotStorageStream
*
pStrm
)
{
{
sal_uInt32
i
,
nSecOfs
,
nProp
Type
,
nPropSize
,
nCurrent
,
nVectorCount
,
nTemp
,
nStrmSize
;
sal_uInt32
i
,
nSecOfs
,
nProp
Size
,
nStrmSize
;
nSecOfs
=
pStrm
->
Tell
();
nSecOfs
=
pStrm
->
Tell
();
pStrm
->
Seek
(
STREAM_SEEK_TO_END
);
pStrm
->
Seek
(
STREAM_SEEK_TO_END
);
...
@@ -316,16 +316,20 @@ void Section::Read( SotStorageStream *pStrm )
...
@@ -316,16 +316,20 @@ void Section::Read( SotStorageStream *pStrm )
mnTextEnc
=
RTL_TEXTENCODING_MS_1252
;
mnTextEnc
=
RTL_TEXTENCODING_MS_1252
;
sal_uInt32
nSecSize
(
0
),
nPropCount
(
0
);
sal_uInt32
nSecSize
(
0
),
nPropCount
(
0
);
pStrm
->
ReadUInt32
(
nSecSize
).
ReadUInt32
(
nPropCount
);
pStrm
->
ReadUInt32
(
nSecSize
).
ReadUInt32
(
nPropCount
);
while
(
nPropCount
--
&&
pStrm
->
good
()
)
while
(
nPropCount
--
)
{
{
sal_uInt32
nPropId
(
0
),
nPropOfs
(
0
);
sal_uInt32
nPropId
(
0
),
nPropOfs
(
0
);
pStrm
->
ReadUInt32
(
nPropId
).
ReadUInt32
(
nPropOfs
);
pStrm
->
ReadUInt32
(
nPropId
).
ReadUInt32
(
nPropOfs
);
nCurrent
=
pStrm
->
Tell
();
if
(
!
pStrm
->
good
())
pStrm
->
Seek
(
nPropOfs
+
nSecOfs
);
break
;
auto
nCurrent
=
pStrm
->
Tell
();
sal_uInt64
nOffset
=
nPropOfs
+
nSecOfs
;
if
(
nOffset
!=
pStrm
->
Seek
(
nOffset
))
break
;
if
(
nPropId
)
// do not read dictionary
if
(
nPropId
)
// do not read dictionary
{
{
sal_uInt32
nPropType
(
0
),
nVectorCount
(
0
);
pStrm
->
ReadUInt32
(
nPropType
);
pStrm
->
ReadUInt32
(
nPropType
);
nPropSize
=
4
;
nPropSize
=
4
;
...
@@ -347,6 +351,7 @@ void Section::Read( SotStorageStream *pStrm )
...
@@ -347,6 +351,7 @@ void Section::Read( SotStorageStream *pStrm )
pStrm
->
ReadUInt32
(
nPropType
);
pStrm
->
ReadUInt32
(
nPropType
);
nPropSize
+=
4
;
nPropSize
+=
4
;
}
}
sal_uInt32
nTemp
(
0
);
switch
(
nPropType
)
switch
(
nPropType
)
{
{
case
VT_UI1
:
case
VT_UI1
:
...
@@ -440,11 +445,11 @@ void Section::Read( SotStorageStream *pStrm )
...
@@ -440,11 +445,11 @@ void Section::Read( SotStorageStream *pStrm )
PropItem
aPropItem
;
PropItem
aPropItem
;
if
(
GetProperty
(
1
,
aPropItem
)
)
if
(
GetProperty
(
1
,
aPropItem
)
)
{
{
sal_uInt16
nCodePage
;
aPropItem
.
ReadUInt32
(
nPropType
);
aPropItem
.
ReadUInt32
(
nPropType
);
if
(
nPropType
==
VT_I2
)
if
(
nPropType
==
VT_I2
)
{
{
aPropItem
.
ReadUInt16
(
nCodePage
);
sal_uInt16
nCodePage
(
0
);
aPropItem
.
ReadUInt16
(
nCodePage
);
if
(
nCodePage
==
1200
)
if
(
nCodePage
==
1200
)
{
{
...
@@ -486,7 +491,7 @@ void Section::Read( SotStorageStream *pStrm )
...
@@ -486,7 +491,7 @@ void Section::Read( SotStorageStream *pStrm )
AddProperty
(
0xffffffff
,
pBuf
,
nSize
);
AddProperty
(
0xffffffff
,
pBuf
,
nSize
);
delete
[]
pBuf
;
delete
[]
pBuf
;
}
}
pStrm
->
Seek
(
nCurrent
);
pStrm
->
Seek
(
nCurrent
);
}
}
pStrm
->
Seek
(
nSecOfs
+
nSecSize
);
pStrm
->
Seek
(
nSecOfs
+
nSecSize
);
}
}
...
...
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