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
be31503e
Kaydet (Commit)
be31503e
authored
Eki 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242778 Untrusted value as argument
Change-Id: I34d5a5e7c5f0eef51d941c65ab73d5421d5a36cb
üst
b520fca8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
ww8par.cxx
sw/source/filter/ww8/ww8par.cxx
+10
-3
No files found.
sw/source/filter/ww8/ww8par.cxx
Dosyayı görüntüle @
be31503e
...
@@ -1043,19 +1043,26 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
...
@@ -1043,19 +1043,26 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
delete
pImpRec
->
pWrapPolygon
;
delete
pImpRec
->
pWrapPolygon
;
pImpRec
->
pWrapPolygon
=
NULL
;
pImpRec
->
pWrapPolygon
=
NULL
;
sal_uInt16
nNumElemVert
,
nNumElemMemVert
,
nElemSizeVert
;
sal_uInt16
nNumElemVert
(
0
),
nNumElemMemVert
(
0
),
nElemSizeVert
(
0
)
;
rSt
.
ReadUInt16
(
nNumElemVert
).
ReadUInt16
(
nNumElemMemVert
).
ReadUInt16
(
nElemSizeVert
);
rSt
.
ReadUInt16
(
nNumElemVert
).
ReadUInt16
(
nNumElemMemVert
).
ReadUInt16
(
nElemSizeVert
);
bool
bOk
=
false
;
if
(
nNumElemVert
&&
((
nElemSizeVert
==
8
)
||
(
nElemSizeVert
==
4
)))
if
(
nNumElemVert
&&
((
nElemSizeVert
==
8
)
||
(
nElemSizeVert
==
4
)))
{
//check if there is enough data in the file to make the
//record sane
bOk
=
rSt
.
remainingSize
()
/
nElemSizeVert
>=
nNumElemVert
;
}
if
(
bOk
)
{
{
pImpRec
->
pWrapPolygon
=
new
Polygon
(
nNumElemVert
);
pImpRec
->
pWrapPolygon
=
new
Polygon
(
nNumElemVert
);
for
(
sal_uInt16
i
=
0
;
i
<
nNumElemVert
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
nNumElemVert
;
++
i
)
{
{
sal_Int32
nX
,
nY
;
sal_Int32
nX
(
0
),
nY
(
0
)
;
if
(
nElemSizeVert
==
8
)
if
(
nElemSizeVert
==
8
)
rSt
.
ReadInt32
(
nX
).
ReadInt32
(
nY
);
rSt
.
ReadInt32
(
nX
).
ReadInt32
(
nY
);
else
else
{
{
sal_Int16
nSmallX
,
nSmallY
;
sal_Int16
nSmallX
(
0
),
nSmallY
(
0
)
;
rSt
.
ReadInt16
(
nSmallX
).
ReadInt16
(
nSmallY
);
rSt
.
ReadInt16
(
nSmallX
).
ReadInt16
(
nSmallY
);
nX
=
nSmallX
;
nX
=
nSmallX
;
nY
=
nSmallY
;
nY
=
nSmallY
;
...
...
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