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
59197f18
Kaydet (Commit)
59197f18
authored
Tem 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use same limit in ProcessOneCode as AddToTable
Change-Id: Id0345e5d867d18bf7eb341f04086226b7fa79680
üst
2f0d1a23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
decode.cxx
vcl/source/filter/igif/decode.cxx
+3
-6
No files found.
vcl/source/filter/igif/decode.cxx
Dosyayı görüntüle @
59197f18
...
...
@@ -109,11 +109,9 @@ HPBYTE GIFLZWDecompressor::DecompressBlock( HPBYTE pSrc, sal_uInt8 cBufSize,
bool
GIFLZWDecompressor
::
AddToTable
(
sal_uInt16
nPrevCode
,
sal_uInt16
nCodeFirstData
)
{
GIFLZWTableEntry
*
pE
;
if
(
nTableSize
<
4096
)
{
pE
=
pTable
+
nTableSize
;
GIFLZWTableEntry
*
pE
=
pTable
+
nTableSize
;
pE
->
pPrev
=
pTable
+
nPrevCode
;
pE
->
pFirst
=
pE
->
pPrev
->
pFirst
;
GIFLZWTableEntry
*
pEntry
=
pTable
[
nCodeFirstData
].
pFirst
;
...
...
@@ -130,7 +128,6 @@ bool GIFLZWDecompressor::AddToTable( sal_uInt16 nPrevCode, sal_uInt16 nCodeFirst
bool
GIFLZWDecompressor
::
ProcessOneCode
()
{
GIFLZWTableEntry
*
pE
;
sal_uInt16
nCode
;
bool
bRet
=
false
;
bool
bEndOfBlock
=
false
;
...
...
@@ -193,11 +190,11 @@ bool GIFLZWDecompressor::ProcessOneCode()
nOldCode
=
nCode
;
if
(
nCode
>
4096
)
if
(
nCode
>
=
4096
)
return
false
;
// write character(/-sequence) of code nCode in the output buffer:
pE
=
pTable
+
nCode
;
GIFLZWTableEntry
*
pE
=
pTable
+
nCode
;
do
{
if
(
pOutBufData
==
pOutBuf
)
//can't go back past start
...
...
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