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
353fd33e
Kaydet (Commit)
353fd33e
authored
Ock 14, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix check for odd nStrLen, as suggested by the comments
Change-Id: I41fc496c844c7f4a580bb9496bedc14bac70d37d
üst
b1d2ec75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
interpr4.cxx
sc/source/core/tool/interpr4.cxx
+4
-4
No files found.
sc/source/core/tool/interpr4.cxx
Dosyayı görüntüle @
353fd33e
...
...
@@ -696,7 +696,7 @@ bool ScInterpreter::CreateStringArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
// one day, and room for pad byte check.
if
(
aTmp
.
getLength
()
>
((
sal_uInt16
)(
~
0
))
-
2
)
return
false
;
// Append a 0-pad-byte if string length is
not even
// Append a 0-pad-byte if string length is
odd
//! MUST be sal_uInt16 and not xub_StrLen
sal_uInt16
nStrLen
=
(
sal_uInt16
)
aTmp
.
getLength
();
sal_uInt16
nLen
=
(
nStrLen
+
2
)
&
~
1
;
...
...
@@ -711,7 +711,7 @@ bool ScInterpreter::CreateStringArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
memcpy
(
p
,
aTmp
.
getStr
(),
nStrLen
+
1
);
nPos
+=
10
+
nStrLen
+
1
;
sal_uInt8
*
q
=
(
pCellArr
+
nPos
);
if
(
!
nStrLen
&
1
)
if
(
(
nStrLen
&
1
)
==
0
)
*
q
++
=
0
,
nPos
++
;
p
=
(
sal_uInt16
*
)
(
pCellArr
+
nPos
);
nCount
++
;
...
...
@@ -819,7 +819,7 @@ bool ScInterpreter::CreateCellArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
// one day, and room for pad byte check.
if
(
aTmp
.
getLength
()
>
((
sal_uInt16
)(
~
0
))
-
2
)
return
false
;
// Append a 0-pad-byte if string length is
not even
// Append a 0-pad-byte if string length is
odd
//! MUST be sal_uInt16 and not xub_StrLen
sal_uInt16
nStrLen
=
(
sal_uInt16
)
aTmp
.
getLength
();
sal_uInt16
nLen
=
(
nStrLen
+
2
)
&
~
1
;
...
...
@@ -829,7 +829,7 @@ bool ScInterpreter::CreateCellArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
memcpy
(
p
,
aTmp
.
getStr
(),
nStrLen
+
1
);
nPos
+=
2
+
nStrLen
+
1
;
sal_uInt8
*
q
=
(
pCellArr
+
nPos
);
if
(
!
nStrLen
&
1
)
if
(
(
nStrLen
&
1
)
==
0
)
*
q
++
=
0
,
nPos
++
;
}
nCount
++
;
...
...
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