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
fcea3ced
Kaydet (Commit)
fcea3ced
authored
May 09, 2012
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ensure PNG header chunks uniqueness
üst
c466b30a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
pngread.cxx
vcl/source/gdi/pngread.cxx
+7
-1
No files found.
vcl/source/gdi/pngread.cxx
Dosyayı görüntüle @
fcea3ced
...
@@ -197,6 +197,8 @@ PNGReaderImpl::PNGReaderImpl( SvStream& rPNGStream )
...
@@ -197,6 +197,8 @@ PNGReaderImpl::PNGReaderImpl( SvStream& rPNGStream )
mpScanPrior
(
NULL
),
mpScanPrior
(
NULL
),
mpTransTab
(
NULL
),
mpTransTab
(
NULL
),
mpColorTable
(
(
sal_uInt8
*
)
mpDefaultColorTable
),
mpColorTable
(
(
sal_uInt8
*
)
mpDefaultColorTable
),
mnColorType
(
0xFF
),
mbPalette
(
false
),
mbzCodecInUse
(
sal_False
),
mbzCodecInUse
(
sal_False
),
mbStatus
(
sal_True
),
mbStatus
(
sal_True
),
mbIDAT
(
sal_False
),
mbIDAT
(
sal_False
),
...
@@ -366,6 +368,10 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
...
@@ -366,6 +368,10 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
// reset to the first chunk
// reset to the first chunk
maChunkIter
=
maChunkSeq
.
begin
();
maChunkIter
=
maChunkSeq
.
begin
();
// read the first chunk which must be the IHDR chunk
ReadNextChunk
();
mbStatus
=
(
mnChunkType
==
PNGCHUNK_IHDR
)
&&
ImplReadHeader
(
rPreviewSizeHint
);
// parse the chunks
// parse the chunks
while
(
mbStatus
&&
!
mbIDAT
&&
ReadNextChunk
()
)
while
(
mbStatus
&&
!
mbIDAT
&&
ReadNextChunk
()
)
{
{
...
@@ -373,7 +379,7 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
...
@@ -373,7 +379,7 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
{
{
case
PNGCHUNK_IHDR
:
case
PNGCHUNK_IHDR
:
{
{
mbStatus
=
ImplReadHeader
(
rPreviewSizeHint
);
mbStatus
=
false
;
// only one IHDR possible
}
}
break
;
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