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
15dfcb7f
Kaydet (Commit)
15dfcb7f
authored
Tem 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't hang with 0 len causing no progression
Change-Id: Ie553dab291c7bfbde033d89b84159aff6b42a160
üst
b8637e67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
hang-1.met
filter/qa/cppunit/data/met/fail/hang-1.met
+0
-0
ios2met.cxx
filter/source/graphicfilter/ios2met/ios2met.cxx
+9
-3
No files found.
filter/qa/cppunit/data/met/fail/hang-1.met
0 → 100644
Dosyayı görüntüle @
15dfcb7f
File added
filter/source/graphicfilter/ios2met/ios2met.cxx
Dosyayı görüntüle @
15dfcb7f
...
...
@@ -2239,7 +2239,6 @@ void OS2METReader::ReadImageData(sal_uInt16 nDataID, sal_uInt16 nDataLen)
void
OS2METReader
::
ReadFont
(
sal_uInt16
nFieldSize
)
{
sal_uLong
nPos
,
nMaxPos
;
sal_uInt16
nLen
;
sal_uInt8
nByte
,
nTripType
,
nTripType2
;
OSFont
*
pF
=
new
OSFont
;
pF
->
pSucc
=
pFontList
;
pFontList
=
pF
;
...
...
@@ -2251,7 +2250,13 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
nMaxPos
=
nPos
+
(
sal_uLong
)
nFieldSize
;
pOS2MET
->
SeekRel
(
2
);
nPos
+=
2
;
while
(
nPos
<
nMaxPos
&&
pOS2MET
->
GetError
()
==
0
)
{
pOS2MET
->
ReadUChar
(
nByte
);
nLen
=
((
sal_uInt16
)
nByte
)
&
0x00ff
;
pOS2MET
->
ReadUChar
(
nByte
);
sal_uInt16
nLen
=
((
sal_uInt16
)
nByte
)
&
0x00ff
;
if
(
nLen
==
0
)
{
pOS2MET
->
SetError
(
SVSTREAM_FILEFORMAT_ERROR
);
ErrorCode
=
4
;
}
pOS2MET
->
ReadUChar
(
nTripType
);
switch
(
nTripType
)
{
case
0x02
:
...
...
@@ -2303,7 +2308,8 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
break
;
}
}
nPos
+=
nLen
;
pOS2MET
->
Seek
(
nPos
);
nPos
+=
nLen
;
pOS2MET
->
Seek
(
nPos
);
}
}
...
...
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