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
f7c4e8cb
Kaydet (Commit)
f7c4e8cb
authored
Tem 23, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1415614 Out-of-bounds read
Change-Id: I73d18dd6613be063002878fb4906a49863707856
üst
1d663165
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
DocumentStylePoolManager.cxx
sw/source/core/doc/DocumentStylePoolManager.cxx
+7
-9
No files found.
sw/source/core/doc/DocumentStylePoolManager.cxx
Dosyayı görüntüle @
f7c4e8cb
...
...
@@ -1380,18 +1380,16 @@ SwFormat* DocumentStylePoolManager::GetFormatFromPool( sal_uInt16 nId )
pDeriveFormat
=
m_rDoc
.
GetDfltCharFormat
();
pWhichRange
=
aCharFormatSetRange
;
// Fault: unknown Format, but a CharFormat
// -> return the first one
if
(
RES_POOLCHR_BEGIN
>
nId
||
nId
>=
RES_POOLCHR_END
)
if
(
nId
>=
RES_POOLCHR_HTML_BEGIN
&&
nId
<
RES_POOLCHR_HTML_END
)
pRCId
=
STR_POOLCHR_HTML_ARY
[
nId
-
RES_POOLCHR_HTML_BEGIN
];
else
if
(
nId
>=
RES_POOLCHR_NORMAL_BEGIN
&&
nId
<
RES_POOLCHR_NORMAL_END
)
pRCId
=
STR_POOLCHR_ARY
[
nId
-
RES_POOLCHR_BEGIN
];
else
{
// Fault: unknown Format, but a CharFormat -> return the first one
OSL_ENSURE
(
false
,
"invalid Id"
);
nId
=
RES_POOLCHR_BEGIN
;
pRCId
=
STR_POOLCHR_ARY
[
0
]
;
}
if
(
nId
>
RES_POOLCHR_NORMAL_END
)
pRCId
=
STR_POOLCHR_HTML_ARY
[
nId
-
RES_POOLCHR_HTML_BEGIN
];
else
pRCId
=
STR_POOLCHR_ARY
[
nId
-
RES_POOLCHR_BEGIN
];
}
break
;
case
POOLGRP_FRAMEFMT
:
...
...
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