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
89857aac
Kaydet (Commit)
89857aac
authored
Tem 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tools polygons limited to 16bit indexes
Change-Id: Ib0f727a3681492c15b807ca159d8bf7675ee8f29
üst
e1d78e12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
hang-2.met
filter/qa/cppunit/data/met/fail/hang-2.met
+0
-0
ios2met.cxx
filter/source/graphicfilter/ios2met/ios2met.cxx
+23
-6
No files found.
filter/qa/cppunit/data/met/fail/hang-2.met
0 → 100644
Dosyayı görüntüle @
89857aac
File added
filter/source/graphicfilter/ios2met/ios2met.cxx
Dosyayı görüntüle @
89857aac
...
@@ -1172,18 +1172,35 @@ void OS2METReader::ReadPartialArc(bool bGivenPos, sal_uInt16 nOrderSize)
...
@@ -1172,18 +1172,35 @@ void OS2METReader::ReadPartialArc(bool bGivenPos, sal_uInt16 nOrderSize)
void
OS2METReader
::
ReadPolygons
()
void
OS2METReader
::
ReadPolygons
()
{
{
sal_uInt32
i
,
j
,
nNumPolys
,
nNumPoints
;
tools
::
PolyPolygon
aPolyPoly
;
tools
::
PolyPolygon
aPolyPoly
;
Polygon
aPoly
;
Polygon
aPoly
;
Point
aPoint
;
Point
aPoint
;
sal_uInt8
nFlags
;
pOS2MET
->
ReadUChar
(
nFlags
).
ReadUInt32
(
nNumPolys
);
sal_uInt8
nFlags
(
0
);
for
(
i
=
0
;
i
<
nNumPolys
;
i
++
)
{
sal_uInt32
nNumPolys
(
0
);
pOS2MET
->
ReadUInt32
(
nNumPoints
);
pOS2MET
->
ReadUChar
(
nFlags
).
ReadUInt32
(
nNumPolys
);
if
(
nNumPolys
>
SAL_MAX_UINT16
)
{
pOS2MET
->
SetError
(
SVSTREAM_FILEFORMAT_ERROR
);
ErrorCode
=
11
;
return
;
}
for
(
sal_uInt32
i
=
0
;
i
<
nNumPolys
;
++
i
)
{
sal_uInt32
nNumPoints
(
0
);
pOS2MET
->
ReadUInt32
(
nNumPoints
);
if
(
nNumPoints
>
(
i
==
0
)
?
SAL_MAX_UINT16
-
1
:
SAL_MAX_UINT16
)
{
pOS2MET
->
SetError
(
SVSTREAM_FILEFORMAT_ERROR
);
ErrorCode
=
11
;
return
;
}
if
(
i
==
0
)
nNumPoints
++
;
if
(
i
==
0
)
nNumPoints
++
;
aPoly
.
SetSize
((
short
)
nNumPoints
);
aPoly
.
SetSize
((
short
)
nNumPoints
);
for
(
j
=
0
;
j
<
nNumPoints
;
j
++
)
{
for
(
sal_uInt32
j
=
0
;
j
<
nNumPoints
;
++
j
)
{
if
(
i
==
0
&&
j
==
0
)
aPoint
=
aAttr
.
aCurPos
;
if
(
i
==
0
&&
j
==
0
)
aPoint
=
aAttr
.
aCurPos
;
else
aPoint
=
ReadPoint
();
else
aPoint
=
ReadPoint
();
aPoly
.
SetPoint
(
aPoint
,(
short
)
j
);
aPoly
.
SetPoint
(
aPoint
,(
short
)
j
);
...
...
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