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
4999ebf2
Kaydet (Commit)
4999ebf2
authored
Tem 04, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1213369 Untrusted value as argument
Change-Id: I3560bc689b2ffd44662678b62e18ce047efb22cc
üst
ba59a17f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sft.cxx
vcl/source/fontsubset/sft.cxx
+1
-1
No files found.
vcl/source/fontsubset/sft.cxx
Dosyayı görüntüle @
4999ebf2
...
...
@@ -1721,7 +1721,7 @@ static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t )
for
(
i
=
0
;
i
<=
(
int
)
t
->
nglyphs
;
++
i
)
t
->
goffsets
[
i
]
=
indexfmt
?
GetUInt32
(
table
,
i
<<
2
,
1
)
:
(
sal_uInt32
)
GetUInt16
(
table
,
i
<<
1
,
1
)
<<
1
;
}
else
if
(
getTable
(
t
,
O_CFF
)
)
{
/* PS-OpenType */
int
k
=
getTableSize
(
t
,
O_CFF
)
;
/* set a limit here, presumably much lower than the table size, but establishes some sort of physical bound */
int
k
=
(
getTableSize
(
t
,
O_CFF
)
/
2
)
-
1
;
/* set a limit here, presumably much lower than the table size, but establishes some sort of physical bound */
if
(
k
<
(
int
)
t
->
nglyphs
)
t
->
nglyphs
=
k
;
t
->
goffsets
=
static_cast
<
sal_uInt32
*>
(
calloc
(
1
+
t
->
nglyphs
,
sizeof
(
sal_uInt32
)));
...
...
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