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
1ab0e871
Kaydet (Commit)
1ab0e871
authored
Agu 19, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
guard against division by 0
valgrind + bff Change-Id: I5fa40f7a9759c98bb70ee6eb854dd9b376401f89
üst
44afb981
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
itiff.cxx
filter/source/graphicfilter/itiff/itiff.cxx
+17
-12
No files found.
filter/source/graphicfilter/itiff/itiff.cxx
Dosyayı görüntüle @
1ab0e871
...
@@ -1324,29 +1324,34 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
...
@@ -1324,29 +1324,34 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
bByteSwap
=
true
;
bByteSwap
=
true
;
nStripsPerPlane
=
(
nImageLength
-
1
)
/
GetRowsPerStrip
()
+
1
;
nStripsPerPlane
=
(
nImageLength
-
1
)
/
GetRowsPerStrip
()
+
1
;
nBytesPerRow
=
(
nImageWidth
*
nSamplesPerPixel
/
nPlanes
*
nBitsPerSample
+
7
)
>>
3
;
bStatus
=
nPlanes
!=
0
;
for
(
sal_uLong
j
=
0
;
j
<
4
;
j
++
)
if
(
bStatus
)
{
{
try
nBytesPerRow
=
(
nImageWidth
*
nSamplesPerPixel
/
nPlanes
*
nBitsPerSample
+
7
)
>>
3
;
{
pMap
[
j
]
=
new
sal_uInt8
[
nBytesPerRow
];
for
(
sal_uLong
j
=
0
;
j
<
4
;
j
++
)
}
catch
(
const
std
::
bad_alloc
&
)
{
{
pMap
[
j
]
=
NULL
;
try
bStatus
=
false
;
{
break
;
pMap
[
j
]
=
new
sal_uInt8
[
nBytesPerRow
];
}
catch
(
const
std
::
bad_alloc
&
)
{
pMap
[
j
]
=
NULL
;
bStatus
=
false
;
break
;
}
}
}
}
}
if
(
HasAlphaChannel
())
if
(
bStatus
&&
HasAlphaChannel
())
{
{
pAlphaMask
=
new
AlphaMask
(
aTargetSize
);
pAlphaMask
=
new
AlphaMask
(
aTargetSize
);
pMaskAcc
=
pAlphaMask
->
AcquireWriteAccess
();
pMaskAcc
=
pAlphaMask
->
AcquireWriteAccess
();
}
}
if
(
bStatus
&&
ReadMap
(
10
,
60
)
)
if
(
bStatus
&&
ReadMap
(
10
,
60
)
)
{
{
nMaxPos
=
std
::
max
(
pTIFF
->
Tell
(),
nMaxPos
);
nMaxPos
=
std
::
max
(
pTIFF
->
Tell
(),
nMaxPos
);
MakePalCol
();
MakePalCol
();
...
...
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