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
cfb0c6d7
Kaydet (Commit)
cfb0c6d7
authored
Şub 07, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242895 Untrusted loop bound
Change-Id: Ib54ed3f18c91142f1c217f618d88e36a646cf931
üst
b42d7e4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
scflt.cxx
sc/source/filter/starcalc/scflt.cxx
+10
-1
No files found.
sc/source/filter/starcalc/scflt.cxx
Dosyayı görüntüle @
cfb0c6d7
...
@@ -1534,7 +1534,16 @@ void Sc10Import::LoadTables()
...
@@ -1534,7 +1534,16 @@ void Sc10Import::LoadTables()
return
;
return
;
}
}
rStream
.
ReadUInt16
(
DataCount
);
rStream
.
ReadUInt16
(
DataCount
);
const
size_t
nMinRecordSize
=
sizeof
(
sal_uInt16
)
*
2
;
const
size_t
nMaxRecords
=
rStream
.
remainingSize
()
/
nMinRecordSize
;
if
(
DataCount
>
nMaxRecords
)
{
SAL_WARN
(
"sc"
,
"Parsing error: "
<<
nMaxRecords
<<
" max possible entries, but "
<<
DataCount
<<
" claimed, truncating"
);
DataCount
=
nMaxRecords
;
}
DataStart
=
0
;
DataStart
=
0
;
for
(
i
=
0
;
i
<
DataCount
;
i
++
)
for
(
i
=
0
;
i
<
DataCount
;
i
++
)
{
{
...
...
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