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
8a68c3fe
Kaydet (Commit)
8a68c3fe
authored
Kas 16, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242630 reorganize to help coverity out
Change-Id: I18124cd8d7aadbab22114fa9d38607b43862f9ea
üst
8877a2fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
macitem.cxx
svl/source/items/macitem.cxx
+6
-1
No files found.
svl/source/items/macitem.cxx
Dosyayı görüntüle @
8a68c3fe
...
...
@@ -103,6 +103,11 @@ SvStream& SvxMacroTableDtor::Read( SvStream& rStrm, sal_uInt16 nVersion )
short
nMacro
(
0
);
rStrm
.
ReadInt16
(
nMacro
);
if
(
nMacro
<
0
)
{
SAL_WARN
(
"editeng"
,
"Parsing error: negative value "
<<
nMacro
);
return
rStrm
;
}
const
size_t
nMinStringSize
=
rStrm
.
GetStreamCharSet
()
==
RTL_TEXTENCODING_UNICODE
?
4
:
2
;
size_t
nMinRecordSize
=
2
+
2
*
nMinStringSize
;
...
...
@@ -110,7 +115,7 @@ SvStream& SvxMacroTableDtor::Read( SvStream& rStrm, sal_uInt16 nVersion )
nMinRecordSize
+=
2
;
const
size_t
nMaxRecords
=
rStrm
.
remainingSize
()
/
nMinRecordSize
;
if
(
nMacro
>
0
&&
static_cast
<
size_t
>
(
nMacro
)
>
nMaxRecords
)
if
(
static_cast
<
size_t
>
(
nMacro
)
>
nMaxRecords
)
{
SAL_WARN
(
"editeng"
,
"Parsing error: "
<<
nMaxRecords
<<
" max possible entries, but "
<<
nMacro
<<
" claimed, truncating"
);
...
...
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