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
b43e0335
Kaydet (Commit)
b43e0335
authored
Eyl 11, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
check stream status more often
Change-Id: I233c2fff9c06a81117f8114ccee83b53ea4026db
üst
ab4bb0c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
15 deletions
+32
-15
hang-1.ras
filter/qa/cppunit/data/ras/fail/hang-1.ras
+0
-0
iras.cxx
filter/source/graphicfilter/iras/iras.cxx
+32
-15
No files found.
filter/qa/cppunit/data/ras/fail/hang-1.ras
0 → 100644
Dosyayı görüntüle @
b43e0335
File added
filter/source/graphicfilter/iras/iras.cxx
Dosyayı görüntüle @
b43e0335
...
...
@@ -222,31 +222,43 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
case
1
:
for
(
y
=
0
;
y
<
mnHeight
&&
mbStatus
;
++
y
)
{
for
(
x
=
0
;
x
<
mnWidth
;
x
++
)
for
(
x
=
0
;
x
<
mnWidth
&&
mbStatus
;
++
x
)
{
if
(
!
(
x
&
7
))
{
nDat
=
ImplGetByte
();
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
pAcc
->
SetPixelIndex
(
y
,
x
,
sal
::
static_int_cast
<
sal_uInt8
>
(
nDat
>>
(
(
x
&
7
)
^
7
))
);
}
if
(
!
(
(
x
-
1
)
&
0x8
)
)
ImplGetByte
();
// WORD ALIGNMENT ???
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
if
(
!
(
(
x
-
1
)
&
0x8
)
)
{
ImplGetByte
();
// WORD ALIGNMENT ???
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
}
break
;
case
8
:
for
(
y
=
0
;
y
<
mnHeight
&&
mbStatus
;
++
y
)
{
for
(
x
=
0
;
x
<
mnWidth
;
x
++
)
for
(
x
=
0
;
x
<
mnWidth
&&
mbStatus
;
++
x
)
{
nDat
=
ImplGetByte
();
pAcc
->
SetPixelIndex
(
y
,
x
,
nDat
);
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
if
(
x
&
1
)
{
ImplGetByte
();
// WORD ALIGNMENT ???
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
if
(
x
&
1
)
ImplGetByte
();
// WORD ALIGNMENT ???
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
break
;
...
...
@@ -257,7 +269,7 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
case
24
:
for
(
y
=
0
;
y
<
mnHeight
&&
mbStatus
;
++
y
)
{
for
(
x
=
0
;
x
<
mnWidth
;
x
++
)
for
(
x
=
0
;
x
<
mnWidth
&&
mbStatus
;
++
x
)
{
if
(
mnType
==
RAS_TYPE_RGB_FORMAT
)
{
...
...
@@ -272,17 +284,22 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
nRed
=
ImplGetByte
();
}
pAcc
->
SetPixel
(
y
,
x
,
BitmapColor
(
nRed
,
nGreen
,
nBlue
)
);
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
if
(
x
&
1
)
{
ImplGetByte
();
// WORD ALIGNMENT ???
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
if
(
x
&
1
)
ImplGetByte
();
// WORD ALIGNMENT ???
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
break
;
case
32
:
for
(
y
=
0
;
y
<
mnHeight
&&
mbStatus
;
++
y
)
{
for
(
x
=
0
;
x
<
mnWidth
;
x
++
)
for
(
x
=
0
;
x
<
mnWidth
&&
mbStatus
;
++
x
)
{
nDat
=
ImplGetByte
();
// pad byte > nil
if
(
mnType
==
RAS_TYPE_RGB_FORMAT
)
...
...
@@ -298,9 +315,9 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
nRed
=
ImplGetByte
();
}
pAcc
->
SetPixel
(
y
,
x
,
BitmapColor
(
nRed
,
nGreen
,
nBlue
)
);
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
if
(
!
m_rRAS
.
good
())
mbStatus
=
false
;
}
break
;
}
...
...
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