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
dcad3ac4
Kaydet (Commit)
dcad3ac4
authored
Şub 02, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242624 Untrusted loop bound
Change-Id: Idf52c09828c2bab767e9ff0d07b61befd6bfc64b
üst
71b87e38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
msdffimp.cxx
filter/source/msfilter/msdffimp.cxx
+11
-4
No files found.
filter/source/msfilter/msdffimp.cxx
Dosyayı görüntüle @
dcad3ac4
...
...
@@ -2153,13 +2153,19 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
sal_uInt16
nNumElemMemVert
=
0
;
rIn
.
ReadUInt16
(
nNumElemVert
).
ReadUInt16
(
nNumElemMemVert
).
ReadUInt16
(
nElemSizeVert
);
}
if
(
nNumElemVert
)
bool
bImport
=
false
;
if
(
nElemSizeVert
==
8
||
nElemSizeVert
==
4
)
{
//sanity check that the stream is long enough to fulfill nNumElem * nElemSize;
bImport
=
rIn
.
remainingSize
()
/
nElemSizeVert
>=
nNumElemVert
;
}
if
(
bImport
)
{
sal_Int32
nX
,
nY
;
sal_Int16
nTmpA
,
nTmpB
;
aCoordinates
.
realloc
(
nNumElemVert
);
for
(
sal_uInt16
i
=
0
;
i
<
nNumElemVert
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nNumElemVert
;
++
i
)
{
sal_Int32
nX
(
0
),
nY
(
0
);
if
(
nElemSizeVert
==
8
)
{
rIn
.
ReadInt32
(
nX
)
...
...
@@ -2167,6 +2173,7 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
}
else
{
sal_Int16
nTmpA
(
0
),
nTmpB
(
0
);
rIn
.
ReadInt16
(
nTmpA
)
.
ReadInt16
(
nTmpB
);
...
...
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