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
5d32a4ac
Kaydet (Commit)
5d32a4ac
authored
Tem 20, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reduce scope, etc, don't loop endlessly
Change-Id: I86e4e94392527b5faf5d9cdb4251853f35813f4e
üst
a890a769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
crash-4.tiff
filter/qa/cppunit/data/tiff/fail/crash-4.tiff
+0
-0
ccidecom.cxx
filter/source/graphicfilter/itiff/ccidecom.cxx
+2
-7
No files found.
filter/qa/cppunit/data/tiff/fail/crash-4.tiff
0 → 100644
Dosyayı görüntüle @
5d32a4ac
260 Bytes
filter/source/graphicfilter/itiff/ccidecom.cxx
Dosyayı görüntüle @
5d32a4ac
...
...
@@ -628,8 +628,6 @@ void CCIDecompressor::StartDecompression( SvStream & rIStream )
bool
CCIDecompressor
::
DecompressScanline
(
sal_uInt8
*
pTarget
,
sal_uLong
nTargetBits
,
bool
bLastLine
)
{
sal_uInt16
i
;
sal_uInt8
*
pDst
;
bool
b2D
;
if
(
nEOLCount
>=
5
)
// RTC (Return To Controller)
...
...
@@ -678,8 +676,7 @@ bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTarget
delete
[]
pLastLine
;
nLastLineSize
=
(
nTargetBits
+
7
)
>>
3
;
pLastLine
=
new
sal_uInt8
[
nLastLineSize
];
pDst
=
pLastLine
;
for
(
i
=
0
;
i
<
nLastLineSize
;
i
++
)
*
(
pDst
++
)
=
0x00
;
memset
(
pLastLine
,
0
,
nLastLineSize
);
}
}
// conditionally align start of line to next byte:
...
...
@@ -706,9 +703,7 @@ bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTarget
// if we're in 2D mode we have to remember the line:
if
(
nOptions
&
CCI_OPTION_2D
&&
bStatus
)
{
sal_uInt8
*
pSrc
=
pTarget
;
pDst
=
pLastLine
;
for
(
i
=
0
;
i
<
nLastLineSize
;
i
++
)
*
(
pDst
++
)
=*
(
pSrc
++
);
memcpy
(
pLastLine
,
pTarget
,
nLastLineSize
);
}
// #i122984#
...
...
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