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
5a89092d
Kaydet (Commit)
5a89092d
authored
Eki 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1222238 Untrusted loop bound
Change-Id: I1a4dec8727d0a27f7fd0396fd22d955f61daaee4
üst
38a1f24c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
sft.cxx
vcl/source/fontsubset/sft.cxx
+8
-0
No files found.
vcl/source/fontsubset/sft.cxx
Dosyayı görüntüle @
5a89092d
...
@@ -2045,6 +2045,14 @@ static GlyphOffsets *GlyphOffsetsNew(sal_uInt8 *sfntP, sal_uInt32 sfntLen)
...
@@ -2045,6 +2045,14 @@ static GlyphOffsets *GlyphOffsetsNew(sal_uInt8 *sfntP, sal_uInt32 sfntLen)
sal_uInt32
locaLen
=
0
;
sal_uInt32
locaLen
=
0
;
sal_Int16
indexToLocFormat
=
0
;
sal_Int16
indexToLocFormat
=
0
;
sal_uInt32
nMaxPossibleTables
=
sfntLen
/
(
3
*
sizeof
(
sal_uInt32
));
/*the three GetUInt32 calls*/
if
(
numTables
>
nMaxPossibleTables
)
{
SAL_WARN
(
"vcl.fonts"
,
"GlyphOffsetsNew claimed to have "
<<
numTables
<<
" tables, but that's impossibly large"
);
numTables
=
nMaxPossibleTables
;
}
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
sal_uInt32
nLargestFixedOffsetPos
=
12
+
16
*
i
+
12
;
sal_uInt32
nLargestFixedOffsetPos
=
12
+
16
*
i
+
12
;
sal_uInt32
nMinSize
=
nLargestFixedOffsetPos
+
sizeof
(
sal_uInt32
);
sal_uInt32
nMinSize
=
nLargestFixedOffsetPos
+
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