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
8a60e787
Kaydet (Commit)
8a60e787
authored
Tem 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
file format documentation states these are signed
Change-Id: Iaca58dda19d24a767333ff642759414951a03e6d
üst
83b3349b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
crash-1.ras
filter/qa/cppunit/data/ras/fail/crash-1.ras
+0
-0
iras.cxx
filter/source/graphicfilter/iras/iras.cxx
+9
-9
No files found.
filter/qa/cppunit/data/ras/fail/crash-1.ras
0 → 100644
Dosyayı görüntüle @
8a60e787
File added
filter/source/graphicfilter/iras/iras.cxx
Dosyayı görüntüle @
8a60e787
...
...
@@ -44,12 +44,12 @@ private:
bool
mbStatus
;
Bitmap
maBmp
;
sal_
uInt32
mnWidth
,
mnHeight
;
// Bildausmass in Pixeln
sal_uInt16
mnDstBitsPerPix
;
sal_uInt16
mnDstColors
;
sal_
uInt32
mnDepth
,
mnImageDatSize
,
mnType
;
sal_
uInt32
mnColorMapType
,
mnColorMapSize
;
sal_uInt8
mnRepCount
,
mnRepVal
;
// RLE Decoding
sal_
Int32
mnWidth
,
mnHeight
;
// Bildausmass in Pixeln
sal_uInt16
mnDstBitsPerPix
;
sal_uInt16
mnDstColors
;
sal_
Int32
mnDepth
,
mnImageDatSize
,
mnType
;
sal_
Int32
mnColorMapType
,
mnColorMapSize
;
sal_uInt8
mnRepCount
,
mnRepVal
;
// RLE Decoding
bool
mbPalette
;
bool
ImplReadBody
(
BitmapWriteAccess
*
pAcc
);
...
...
@@ -178,9 +178,9 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
bool
RASReader
::
ImplReadHeader
()
{
m_rRAS
.
Read
UInt32
(
mnWidth
).
ReadUInt32
(
mnHeight
).
ReadUInt32
(
mnDepth
).
ReadUInt32
(
mnImageDatSize
).
ReadUInt32
(
mnType
).
ReadUInt32
(
mnColorMapType
).
ReadUInt32
(
mnColorMapSize
);
m_rRAS
.
Read
Int32
(
mnWidth
).
ReadInt32
(
mnHeight
).
ReadInt32
(
mnDepth
).
ReadInt32
(
mnImageDatSize
).
ReadInt32
(
mnType
).
ReadInt32
(
mnColorMapType
).
ReadInt32
(
mnColorMapSize
);
if
(
mnWidth
==
0
||
mnHeight
=
=
0
)
if
(
mnWidth
<=
0
||
mnHeight
<=
0
||
mnImageDatSize
<
=
0
)
mbStatus
=
false
;
switch
(
mnDepth
)
...
...
@@ -216,7 +216,7 @@ bool RASReader::ImplReadHeader()
bool
RASReader
::
ImplReadBody
(
BitmapWriteAccess
*
pAcc
)
{
sal_
uLong
x
,
y
;
sal_
Int32
x
,
y
;
sal_uInt8
nDat
=
0
;
sal_uInt8
nRed
,
nGreen
,
nBlue
;
switch
(
mnDstBitsPerPix
)
...
...
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