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
334dba62
Kaydet (Commit)
334dba62
authored
Agu 26, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix crash on loading certain ppts
Change-Id: I544a67e3706c7d12414cc075118ef2f0f5ddd0f6
üst
15166358
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
svdfppt.cxx
filter/source/msfilter/svdfppt.cxx
+3
-3
svdfppt.hxx
include/filter/msfilter/svdfppt.hxx
+7
-5
crash-1.ppt
sd/qa/unit/data/ppt/pass/crash-1.ppt
+0
-0
No files found.
filter/source/msfilter/svdfppt.cxx
Dosyayı görüntüle @
334dba62
...
...
@@ -4019,13 +4019,13 @@ PPTStyleSheet::PPTStyleSheet( const DffRecordHeader& rSlideHd, SvStream& rIn, Sd
ReadDffRecordHeader( rIn, aTxMasterStyleHd );
if ( aTxMasterStyleHd.nRecType == PPT_PST_TxMasterStyleAtom )
{
sal_uInt16 nLevelAnz;
rIn.ReadUInt16(
nLevelAnz
);
sal_uInt16 nLevelAnz
(0)
;
rIn.ReadUInt16(
nLevelAnz
);
sal_uInt16 nLev = 0;
bool bFirst = true;
bFoundTxMasterStyleAtom04 = true;
while (
rIn.GetError() == 0 && rIn.Tell() < aTxMasterStyleHd.GetRecEndFilePos() && nLev < nLevelAnz
)
while (
rIn.GetError() == 0 && rIn.Tell() < aTxMasterStyleHd.GetRecEndFilePos() && nLev < nLevelAnz && nLev < nMaxPPTLevels
)
{
if ( nLev )
{
...
...
include/filter/msfilter/svdfppt.hxx
Dosyayı görüntüle @
334dba62
...
...
@@ -170,6 +170,8 @@ const sal_uInt32 PPTInventor = sal_uInt32('P') * 0x00000001
+
sal_uInt32
(
'T'
)
*
0x00010000
+
sal_uInt32
(
'0'
)
*
0x01000000
;
const
int
nMaxPPTLevels
=
5
;
// Object IDs for StarDraw UserData
#define PPT_OBJECTINFO_ID (1)
...
...
@@ -705,7 +707,7 @@ struct PPTExtParaLevel
struct
PPTExtParaSheet
{
PPTExtParaLevel
aExtParaLevel
[
5
];
PPTExtParaLevel
aExtParaLevel
[
nMaxPPTLevels
];
};
struct
PPTBuGraEntry
...
...
@@ -750,7 +752,7 @@ struct PPTCharLevel
struct
PPTCharSheet
{
PPTCharLevel
maCharLevel
[
5
];
PPTCharLevel
maCharLevel
[
nMaxPPTLevels
];
explicit
PPTCharSheet
(
sal_uInt32
nInstance
);
PPTCharSheet
(
const
PPTCharSheet
&
rCharSheet
);
...
...
@@ -783,7 +785,7 @@ struct PPTParaSheet
{
public
:
PPTParaLevel
maParaLevel
[
5
];
PPTParaLevel
maParaLevel
[
nMaxPPTLevels
];
explicit
PPTParaSheet
(
sal_uInt32
nInstance
);
PPTParaSheet
(
const
PPTParaSheet
&
rParaSheet
);
...
...
@@ -988,8 +990,8 @@ struct PPTRuler
sal_Int32
nFlags
;
sal_uInt16
nDefaultTab
;
sal_uInt16
nTextOfs
[
5
];
sal_uInt16
nBulletOfs
[
5
];
sal_uInt16
nTextOfs
[
nMaxPPTLevels
];
sal_uInt16
nBulletOfs
[
nMaxPPTLevels
];
PPTTabEntry
*
pTab
;
sal_uInt16
nTabCount
;
...
...
sd/qa/unit/data/ppt/pass/crash-1.ppt
0 → 100644
Dosyayı görüntüle @
334dba62
File added
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