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
33d43205
Kaydet (Commit)
33d43205
authored
Tem 20, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test that nNumStripByteCounts value is within bounds of file
Change-Id: If119628d7f510a7db30ed2180111063781cde887
üst
91b1f300
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
hang-5.tiff
filter/qa/cppunit/data/tiff/fail/hang-5.tiff
+0
-0
itiff.cxx
filter/source/graphicfilter/itiff/itiff.cxx
+5
-2
No files found.
filter/qa/cppunit/data/tiff/fail/hang-5.tiff
0 → 100644
Dosyayı görüntüle @
33d43205
281 Bytes
filter/source/graphicfilter/itiff/itiff.cxx
Dosyayı görüntüle @
33d43205
...
...
@@ -422,14 +422,17 @@ void TIFFReader::ReadTagData( sal_uInt16 nTagType, sal_uInt32 nDataLen)
nNumStripByteCounts
=
0
;
// to be on the safe side
nOldNumSBC
=
nNumStripByteCounts
;
nDataLen
+=
nOldNumSBC
;
if
(
(
nDataLen
>
nOldNumSBC
)
&&
(
nDataLen
<
SAL_MAX_UINT32
/
sizeof
(
sal_uInt32
)
)
)
size_t
nMaxAllocAllowed
=
SAL_MAX_UINT32
/
sizeof
(
sal_uInt32
);
size_t
nMaxRecordsAvailable
=
pTIFF
->
remainingSize
()
/
DataTypeSize
();
if
(
nDataLen
>
nOldNumSBC
&&
nDataLen
<
nMaxAllocAllowed
&&
(
nDataLen
-
nOldNumSBC
)
<=
nMaxRecordsAvailable
)
{
nNumStripByteCounts
=
nDataLen
;
try
{
pStripByteCounts
=
new
sal_uLong
[
nNumStripByteCounts
];
}
catch
(
const
std
::
bad_alloc
&
)
catch
(
const
std
::
bad_alloc
&
)
{
pStripByteCounts
=
NULL
;
nNumStripByteCounts
=
0
;
...
...
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