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
b8251672
Kaydet (Commit)
b8251672
authored
Şub 19, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: these compare functions use subtraction and could overflow
Change-Id: I84c7a4cde694395fa70c60edffd63fb45ffcb3a8
üst
250ef02b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ttcr.cxx
vcl/source/fontsubset/ttcr.cxx
+7
-5
No files found.
vcl/source/fontsubset/ttcr.cxx
Dosyayı görüntüle @
b8251672
...
@@ -148,7 +148,9 @@ _inline void PutUInt32(sal_uInt32 val, sal_uInt8 *ptr, sal_uInt32 offset, int bi
...
@@ -148,7 +148,9 @@ _inline void PutUInt32(sal_uInt32 val, sal_uInt8 *ptr, sal_uInt32 offset, int bi
static
int
TableEntryCompareF
(
const
void
*
l
,
const
void
*
r
)
static
int
TableEntryCompareF
(
const
void
*
l
,
const
void
*
r
)
{
{
return
((
const
TableEntry
*
)
l
)
->
tag
-
((
const
TableEntry
*
)
r
)
->
tag
;
sal_uInt32
const
ltag
(
static_cast
<
TableEntry
const
*>
(
l
)
->
tag
);
sal_uInt32
const
rtag
(
static_cast
<
TableEntry
const
*>
(
r
)
->
tag
);
return
(
ltag
==
rtag
)
?
0
:
(
ltag
<
rtag
)
?
-
1
:
1
;
}
}
static
int
NameRecordCompareF
(
const
void
*
l
,
const
void
*
r
)
static
int
NameRecordCompareF
(
const
void
*
l
,
const
void
*
r
)
...
@@ -157,13 +159,13 @@ static int NameRecordCompareF(const void *l, const void *r)
...
@@ -157,13 +159,13 @@ static int NameRecordCompareF(const void *l, const void *r)
NameRecord
*
rr
=
(
NameRecord
*
)
r
;
NameRecord
*
rr
=
(
NameRecord
*
)
r
;
if
(
ll
->
platformID
!=
rr
->
platformID
)
{
if
(
ll
->
platformID
!=
rr
->
platformID
)
{
return
ll
->
platformID
-
rr
->
platformID
;
return
(
ll
->
platformID
<
rr
->
platformID
)
?
-
1
:
1
;
}
else
if
(
ll
->
encodingID
!=
rr
->
encodingID
)
{
}
else
if
(
ll
->
encodingID
!=
rr
->
encodingID
)
{
return
ll
->
encodingID
-
rr
->
encodingID
;
return
(
ll
->
encodingID
<
rr
->
encodingID
)
?
-
1
:
1
;
}
else
if
(
ll
->
languageID
!=
rr
->
languageID
)
{
}
else
if
(
ll
->
languageID
!=
rr
->
languageID
)
{
return
ll
->
languageID
-
rr
->
languageID
;
return
(
ll
->
languageID
<
rr
->
languageID
)
?
-
1
:
1
;
}
else
if
(
ll
->
nameID
!=
rr
->
nameID
)
{
}
else
if
(
ll
->
nameID
!=
rr
->
nameID
)
{
return
ll
->
nameID
-
rr
->
nameID
;
return
(
ll
->
nameID
<
rr
->
nameID
)
?
-
1
:
1
;
}
}
return
0
;
return
0
;
}
}
...
...
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