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
71f1553c
Kaydet (Commit)
71f1553c
authored
Kas 19, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: coverity#1242658 Untrusted loop bound
Change-Id: Ic785b333c1ad31036da20483dc7310fcc5338d80
üst
885494f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ipict.cxx
filter/source/graphicfilter/ipict/ipict.cxx
+10
-2
No files found.
filter/source/graphicfilter/ipict/ipict.cxx
Dosyayı görüntüle @
71f1553c
...
@@ -990,7 +990,11 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
...
@@ -990,7 +990,11 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
if
(
nRowBytes
<
8
||
nPackType
==
1
)
if
(
nRowBytes
<
8
||
nPackType
==
1
)
{
{
const
size_t
nMaxPixels
=
pPict
->
remainingSize
()
/
4
;
const
size_t
nMaxPixels
=
pPict
->
remainingSize
()
/
4
;
if
(
static_cast
<
size_t
>
(
nHeight
)
*
nWidth
>
nMaxPixels
)
const
size_t
nMaxRows
=
nMaxPixels
/
nWidth
;
if
(
nHeight
>
nMaxRows
)
BITMAPERROR
;
const
size_t
nMaxCols
=
nMaxPixels
/
nHeight
;
if
(
nWidth
>
nMaxCols
)
BITMAPERROR
;
BITMAPERROR
;
for
(
ny
=
0
;
ny
<
nHeight
;
ny
++
)
for
(
ny
=
0
;
ny
<
nHeight
;
ny
++
)
...
@@ -1006,7 +1010,11 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
...
@@ -1006,7 +1010,11 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
else
if
(
nPackType
==
2
)
else
if
(
nPackType
==
2
)
{
{
const
size_t
nMaxPixels
=
pPict
->
remainingSize
()
/
3
;
const
size_t
nMaxPixels
=
pPict
->
remainingSize
()
/
3
;
if
(
static_cast
<
size_t
>
(
nHeight
)
*
nWidth
>
nMaxPixels
)
const
size_t
nMaxRows
=
nMaxPixels
/
nWidth
;
if
(
nHeight
>
nMaxRows
)
BITMAPERROR
;
const
size_t
nMaxCols
=
nMaxPixels
/
nHeight
;
if
(
nWidth
>
nMaxCols
)
BITMAPERROR
;
BITMAPERROR
;
for
(
ny
=
0
;
ny
<
nHeight
;
ny
++
)
for
(
ny
=
0
;
ny
<
nHeight
;
ny
++
)
...
...
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