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
6333a7c8
Kaydet (Commit)
6333a7c8
authored
Eki 25, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242959 Untrusted value as argument
Change-Id: If6132ff4fb9293282b4ed5690f940985cf198b8d
üst
2de86740
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
ww8toolbar.cxx
sw/source/filter/ww8/ww8toolbar.cxx
+9
-3
ww8toolbar.hxx
sw/source/filter/ww8/ww8toolbar.hxx
+1
-1
No files found.
sw/source/filter/ww8/ww8toolbar.cxx
Dosyayı görüntüle @
6333a7c8
...
...
@@ -114,7 +114,7 @@ bool SwCTBWrapper::Read( SvStream& rS )
nOffSet
=
rS
.
Tell
();
Tcg255SubStruct
::
Read
(
rS
);
rS
.
ReadUInt16
(
reserved2
).
ReadUChar
(
reserved3
).
ReadUInt16
(
reserved4
).
ReadUInt16
(
reserved5
);
rS
.
ReadInt16
(
cbTBD
).
ReadInt16
(
cCust
).
ReadInt32
(
cbDTBC
);
rS
.
ReadInt16
(
cbTBD
).
Read
U
Int16
(
cCust
).
ReadInt32
(
cbDTBC
);
long
nExpectedPos
=
rS
.
Tell
()
+
cbDTBC
;
if
(
cbDTBC
)
{
...
...
@@ -146,9 +146,15 @@ bool SwCTBWrapper::Read( SvStream& rS )
// seek to correct position after rtbdc
rS
.
Seek
(
nExpectedPos
);
}
if
(
cCust
)
if
(
cCust
)
{
for
(
sal_Int32
index
=
0
;
index
<
cCust
;
++
index
)
//Each customization takes a min of 8 bytes
size_t
nMaxPossibleRecords
=
rS
.
remainingSize
()
/
8
;
if
(
cCust
>
nMaxPossibleRecords
)
{
return
false
;
}
for
(
sal_uInt16
index
=
0
;
index
<
cCust
;
++
index
)
{
Customization
aCust
(
this
);
if
(
!
aCust
.
Read
(
rS
)
)
...
...
sw/source/filter/ww8/ww8toolbar.hxx
Dosyayı görüntüle @
6333a7c8
...
...
@@ -155,7 +155,7 @@ class SwCTBWrapper : public Tcg255SubStruct
sal_uInt16
reserved5
;
sal_Int16
cbTBD
;
sal_Int16
cCust
;
sal_
u
Int16
cCust
;
sal_Int32
cbDTBC
;
...
...
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