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
521723b1
Kaydet (Commit)
521723b1
authored
Ock 27, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move deref inside (laughable) nSecurityCount check
Change-Id: Idf9a83ffa80137967d8c77d7a9b5133529fc2858
üst
b593c9c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ieps.cxx
filter/source/graphicfilter/ieps/ieps.cxx
+5
-6
No files found.
filter/source/graphicfilter/ieps/ieps.cxx
Dosyayı görüntüle @
521723b1
...
@@ -76,10 +76,9 @@ static long ImplGetNumber(sal_uInt8* &rBuf, sal_uInt32& nSecurityCount)
...
@@ -76,10 +76,9 @@ static long ImplGetNumber(sal_uInt8* &rBuf, sal_uInt32& nSecurityCount)
long
nRetValue
=
0
;
long
nRetValue
=
0
;
while
(
(
--
nSecurityCount
)
&&
(
(
*
rBuf
==
' '
)
||
(
*
rBuf
==
0x9
)
)
)
while
(
(
--
nSecurityCount
)
&&
(
(
*
rBuf
==
' '
)
||
(
*
rBuf
==
0x9
)
)
)
rBuf
++
;
rBuf
++
;
sal_uInt8
nByte
=
*
rBuf
;
while
(
nSecurityCount
&&
(
*
rBuf
!=
' '
)
&&
(
*
rBuf
!=
0x9
)
&&
(
*
rBuf
!=
0xd
)
&&
(
*
rBuf
!=
0xa
)
)
while
(
nSecurityCount
&&
(
nByte
!=
' '
)
&&
(
nByte
!=
0x9
)
&&
(
nByte
!=
0xd
)
&&
(
nByte
!=
0xa
)
)
{
{
switch
(
nByte
)
switch
(
*
rBuf
)
{
{
case
'.'
:
case
'.'
:
// we'll only use the integer format
// we'll only use the integer format
...
@@ -89,17 +88,17 @@ static long ImplGetNumber(sal_uInt8* &rBuf, sal_uInt32& nSecurityCount)
...
@@ -89,17 +88,17 @@ static long ImplGetNumber(sal_uInt8* &rBuf, sal_uInt32& nSecurityCount)
bNegative
=
true
;
bNegative
=
true
;
break
;
break
;
default
:
default
:
if
(
(
nByte
<
'0'
)
||
(
nByte
>
'9'
)
)
if
(
(
*
rBuf
<
'0'
)
||
(
*
rBuf
>
'9'
)
)
nSecurityCount
=
1
;
// error parsing the bounding box values
nSecurityCount
=
1
;
// error parsing the bounding box values
else
if
(
bValid
)
else
if
(
bValid
)
{
{
nRetValue
*=
10
;
nRetValue
*=
10
;
nRetValue
+=
nByte
-
'0'
;
nRetValue
+=
*
rBuf
-
'0'
;
}
}
break
;
break
;
}
}
nSecurityCount
--
;
nSecurityCount
--
;
nByte
=
*
(
++
rBuf
)
;
++
rBuf
;
}
}
if
(
bNegative
)
if
(
bNegative
)
nRetValue
=
-
nRetValue
;
nRetValue
=
-
nRetValue
;
...
...
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