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
1c349320
Kaydet (Commit)
1c349320
authored
Şub 16, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#736207: Out-of-bounds access
Change-Id: I0867ff9dd279f06c4af0acc4e28f95b1f47dbe6b
üst
8ca9e356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
writerhelper.cxx
sw/source/filter/ww8/writerhelper.cxx
+15
-2
No files found.
sw/source/filter/ww8/writerhelper.cxx
Dosyayı görüntüle @
1c349320
...
...
@@ -500,6 +500,17 @@ namespace sw
return
aRet
;
}
const
SwNumFmt
*
GetNumFmtFromSwNumRuleLevel
(
const
SwNumRule
&
rRule
,
int
nLevel
)
{
if
(
nLevel
<
0
||
nLevel
>=
MAXLEVEL
)
{
OSL_FAIL
(
"Invalid level"
);
return
NULL
;
}
return
&
(
rRule
.
Get
(
static_cast
<
sal_uInt16
>
(
nLevel
)
));
}
const
SwNumFmt
*
GetNumFmtFromTxtNode
(
const
SwTxtNode
&
rTxtNode
)
{
const
SwNumRule
*
pRule
=
0
;
...
...
@@ -508,7 +519,8 @@ namespace sw
0
!=
(
pRule
=
rTxtNode
.
GetNumRule
())
)
{
return
&
(
pRule
->
Get
(
static_cast
<
sal_uInt16
>
(
rTxtNode
.
GetActualListLevel
())
));
return
GetNumFmtFromSwNumRuleLevel
(
*
pRule
,
rTxtNode
.
GetActualListLevel
());
}
OSL_ENSURE
(
rTxtNode
.
GetDoc
(),
"No document for node?, suspicious"
);
...
...
@@ -520,7 +532,8 @@ namespace sw
0
!=
(
pRule
=
rTxtNode
.
GetDoc
()
->
GetOutlineNumRule
())
)
{
return
&
(
pRule
->
Get
(
static_cast
<
sal_uInt16
>
(
rTxtNode
.
GetActualListLevel
())
));
return
GetNumFmtFromSwNumRuleLevel
(
*
pRule
,
rTxtNode
.
GetActualListLevel
());
}
return
0
;
...
...
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