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
a8fe085f
Kaydet (Commit)
a8fe085f
authored
Agu 31, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
check stream status
Change-Id: I65ed5979d35d8739367294a71620782b832cfd71
üst
e051ccee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
hang-1.pct
filter/qa/cppunit/data/pict/fail/hang-1.pct
+0
-0
ipict.cxx
filter/source/graphicfilter/ipict/ipict.cxx
+6
-4
No files found.
filter/qa/cppunit/data/pict/fail/hang-1.pct
0 → 100644
Dosyayı görüntüle @
a8fe085f
File added
filter/source/graphicfilter/ipict/ipict.cxx
Dosyayı görüntüle @
a8fe085f
...
...
@@ -824,8 +824,7 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
// read and write Bitmap bits:
if
(
nPixelSize
==
1
||
nPixelSize
==
2
||
nPixelSize
==
4
||
nPixelSize
==
8
)
{
sal_uInt8
nByteCountAsByte
,
nFlagCounterByte
;
sal_uInt16
nByteCount
,
nSrcBPL
,
nDestBPL
;
sal_uInt16
nSrcBPL
,
nDestBPL
;
size_t
nCount
;
if
(
nPixelSize
==
1
)
nSrcBPL
=
(
nWidth
+
7
)
>>
3
;
...
...
@@ -851,6 +850,7 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
}
else
{
sal_uInt16
nByteCount
(
0
);
if
(
nRowBytes
>
250
)
{
pPict
->
ReadUInt16
(
nByteCount
);
...
...
@@ -858,14 +858,16 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
}
else
{
sal_uInt8
nByteCountAsByte
(
0
);
pPict
->
ReadUChar
(
nByteCountAsByte
);
nByteCount
=
(
(
sal_uInt16
)
nByteCountAsByte
)
&
0x00ff
;
nDataSize
+=
1
+
(
sal_uLong
)
nByteCount
;
}
while
(
nByteCount
)
while
(
pPict
->
good
()
&&
nByteCount
)
{
pPict
->
ReadUChar
(
nFlagCounterByte
);
sal_uInt8
nFlagCounterByte
(
0
);
pPict
->
ReadUChar
(
nFlagCounterByte
);
if
(
(
nFlagCounterByte
&
0x80
)
==
0
)
{
nCount
=
(
(
sal_uInt16
)
nFlagCounterByte
)
+
1
;
...
...
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