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
0f83c393
Kaydet (Commit)
0f83c393
authored
Kas 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242810 Untrusted loop bound
Change-Id: I457f0f92dc32630e52efbb2bd068208a8570c5d0
üst
357f9d22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
itemset.cxx
svl/source/items/itemset.cxx
+10
-0
No files found.
svl/source/items/itemset.cxx
Dosyayı görüntüle @
0f83c393
...
...
@@ -1487,6 +1487,16 @@ SvStream &SfxItemSet::Load
// Load Item count and as many Items
sal_uInt16
nCount
=
0
;
rStream
.
ReadUInt16
(
nCount
);
const
size_t
nMinRecordSize
=
sizeof
(
sal_uInt16
)
*
2
;
const
size_t
nMaxRecords
=
rStream
.
remainingSize
()
/
nMinRecordSize
;
if
(
nCount
>
nMaxRecords
)
{
SAL_WARN
(
"svl"
,
"Parsing error: "
<<
nMaxRecords
<<
" max possible entries, but "
<<
nCount
<<
" claimed, truncating"
);
nCount
=
nMaxRecords
;
}
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
{
// Load Surrogate/Item and resolve Surrogate
...
...
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