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
06127e06
Kaydet (Commit)
06127e06
authored
Haz 03, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
eliminate xub_StrLen left-over
Change-Id: I02e7700536f5a7fcc836a035aa0767b2a34be887
üst
85d1b74f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
interpr4.cxx
sc/source/core/tool/interpr4.cxx
+7
-7
No files found.
sc/source/core/tool/interpr4.cxx
Dosyayı görüntüle @
06127e06
...
@@ -720,12 +720,12 @@ bool ScInterpreter::CreateStringArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
...
@@ -720,12 +720,12 @@ bool ScInterpreter::CreateStringArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
{
{
OString
aTmp
(
OUStringToOString
(
aStr
,
OString
aTmp
(
OUStringToOString
(
aStr
,
osl_getThreadTextEncoding
()));
osl_getThreadTextEncoding
()));
//
In case the xub_StrLen will be longer than USHORT
//
Old Add-Ins are limited to sal_uInt16 string
//
one day
, and room for pad byte check.
//
lengths
, and room for pad byte check.
if
(
aTmp
.
getLength
()
>
SAL_MAX_UINT16
-
2
)
if
(
aTmp
.
getLength
()
>
SAL_MAX_UINT16
-
2
)
return
false
;
return
false
;
// Append a 0-pad-byte if string length is odd
// Append a 0-pad-byte if string length is odd
//! MUST be sal_uInt16
and not xub_StrLen
//! MUST be sal_uInt16
sal_uInt16
nStrLen
=
(
sal_uInt16
)
aTmp
.
getLength
();
sal_uInt16
nStrLen
=
(
sal_uInt16
)
aTmp
.
getLength
();
sal_uInt16
nLen
=
(
nStrLen
+
2
)
&
~
1
;
sal_uInt16
nLen
=
(
nStrLen
+
2
)
&
~
1
;
...
@@ -843,12 +843,12 @@ bool ScInterpreter::CreateCellArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
...
@@ -843,12 +843,12 @@ bool ScInterpreter::CreateCellArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
{
{
OString
aTmp
(
OUStringToOString
(
aStr
,
OString
aTmp
(
OUStringToOString
(
aStr
,
osl_getThreadTextEncoding
()));
osl_getThreadTextEncoding
()));
//
In case the xub_StrLen will be longer than USHORT
//
Old Add-Ins are limited to sal_uInt16 string
//
one day
, and room for pad byte check.
//
lengths
, and room for pad byte check.
if
(
aTmp
.
getLength
()
>
((
sal_uInt16
)(
~
0
))
-
2
)
if
(
aTmp
.
getLength
()
>
SAL_MAX_UINT16
-
2
)
return
false
;
return
false
;
// Append a 0-pad-byte if string length is odd
// Append a 0-pad-byte if string length is odd
//! MUST be sal_uInt16
and not xub_StrLen
//! MUST be sal_uInt16
sal_uInt16
nStrLen
=
(
sal_uInt16
)
aTmp
.
getLength
();
sal_uInt16
nStrLen
=
(
sal_uInt16
)
aTmp
.
getLength
();
sal_uInt16
nLen
=
(
nStrLen
+
2
)
&
~
1
;
sal_uInt16
nLen
=
(
nStrLen
+
2
)
&
~
1
;
if
(
((
sal_uLong
)
nPos
+
2
+
nLen
)
>
MAXARRSIZE
)
if
(
((
sal_uLong
)
nPos
+
2
+
nLen
)
>
MAXARRSIZE
)
...
...
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