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
e5e13192
Kaydet (Commit)
e5e13192
authored
Kas 14, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242632 Untrusted loop bound
Change-Id: Ib821adfbca149091d4fbe52d05837e232c3caf55
üst
41029bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
editobj.cxx
editeng/source/editeng/editobj.cxx
+11
-2
No files found.
editeng/source/editeng/editobj.cxx
Dosyayı görüntüle @
e5e13192
...
...
@@ -1266,9 +1266,18 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
rtl_TextEncoding
eSrcEncoding
=
GetSOLoadTextEncoding
(
(
rtl_TextEncoding
)
nCharSet
);
// The number of paragraphs ...
sal_uInt16
nParagraphs
;
sal_uInt16
nParagraphs
(
0
)
;
rIStream
.
ReadUInt16
(
nParagraphs
);
const
size_t
nMinParaRecordSize
=
6
+
eSrcEncoding
==
RTL_TEXTENCODING_UNICODE
?
4
:
2
;
const
size_t
nMaxParaRecords
=
rIStream
.
remainingSize
()
/
nMinParaRecordSize
;
if
(
nParagraphs
>
nMaxParaRecords
)
{
SAL_WARN
(
"editeng"
,
"Parsing error: "
<<
nMaxParaRecords
<<
" max possible entries, but "
<<
nParagraphs
<<
" claimed, truncating"
);
nParagraphs
=
nMaxParaRecords
;
}
// The individual paragraphs ...
for
(
sal_uLong
nPara
=
0
;
nPara
<
nParagraphs
;
nPara
++
)
{
...
...
@@ -1280,7 +1289,7 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
// StyleName and Family...
pC
->
GetStyle
()
=
rIStream
.
ReadUniOrByteString
(
eSrcEncoding
);
sal_uInt16
nStyleFamily
;
sal_uInt16
nStyleFamily
(
0
)
;
rIStream
.
ReadUInt16
(
nStyleFamily
);
pC
->
GetFamily
()
=
(
SfxStyleFamily
)
nStyleFamily
;
...
...
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