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
480475b2
Kaydet (Commit)
480475b2
authored
Kas 14, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1209861 untaint image data
Change-Id: Ib35d4a007c276aba45925ac281fff160bf07f9fe
üst
d6d53e5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
bmp.cxx
vcl/unx/generic/dtrans/bmp.cxx
+15
-3
No files found.
vcl/unx/generic/dtrans/bmp.cxx
Dosyayı görüntüle @
480475b2
...
...
@@ -453,9 +453,21 @@ void PixmapHolder::setBitmapDataPalette( const sal_uInt8* pData, XImage* pImage
{
if
(
m_aInfo
.
c_class
!=
TrueColor
)
{
aPalette
[
i
].
red
=
((
unsigned
short
)
pData
[
42
+
i
*
4
])
<<
8
|
((
unsigned
short
)
pData
[
42
+
i
*
4
]);
aPalette
[
i
].
green
=
((
unsigned
short
)
pData
[
41
+
i
*
4
])
<<
8
|
((
unsigned
short
)
pData
[
41
+
i
*
4
]);
aPalette
[
i
].
blue
=
((
unsigned
short
)
pData
[
40
+
i
*
4
])
<<
8
|
((
unsigned
short
)
pData
[
40
+
i
*
4
]);
//This is untainted data which comes from a controlled source
//so, using a byte-swapping pattern which coverity doesn't
//detect as such
//http://security.coverity.com/blog/2014/Apr/on-detecting-heartbleed-with-static-analysis.html
aPalette
[
i
].
red
=
((
unsigned
short
)
pData
[
42
+
i
*
4
]);
aPalette
[
i
].
red
<<=
8
;
aPalette
[
i
].
red
|=
((
unsigned
short
)
pData
[
42
+
i
*
4
]);
aPalette
[
i
].
green
=
((
unsigned
short
)
pData
[
41
+
i
*
4
]);
aPalette
[
i
].
green
<<=
8
;
aPalette
[
i
].
green
|=
((
unsigned
short
)
pData
[
41
+
i
*
4
]);
aPalette
[
i
].
blue
=
((
unsigned
short
)
pData
[
40
+
i
*
4
]);
aPalette
[
i
].
blue
<<=
8
;
aPalette
[
i
].
blue
|=
((
unsigned
short
)
pData
[
40
+
i
*
4
]);
XAllocColor
(
m_pDisplay
,
m_aColormap
,
aPalette
+
i
);
}
else
...
...
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