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
ad40561d
Kaydet (Commit)
ad40561d
authored
Agu 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#82025 use strlen instead of stored length byte
Change-Id: I58cf2391d7bf2480cd12d2b1b4cf73f346f4f95f
üst
a59e2d4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
urlparameter.hxx
xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+9
-6
No files found.
xmlhelp/source/cxxhelp/provider/urlparameter.hxx
Dosyayı görüntüle @
ad40561d
...
@@ -43,7 +43,6 @@ namespace chelp {
...
@@ -43,7 +43,6 @@ namespace chelp {
{
{
}
}
OUString
getHash
()
OUString
getHash
()
{
{
if
(
m_ptr
)
if
(
m_ptr
)
...
@@ -88,11 +87,15 @@ namespace chelp {
...
@@ -88,11 +87,15 @@ namespace chelp {
if
(
!
m_ptr
)
if
(
!
m_ptr
)
return
OUString
();
return
OUString
();
sal_Int32
sizeOfTitle
=
//fdo#82025 - use strlen instead of stored length byte to determine string len
(
sal_Int32
)
m_ptr
[
2
+
m_ptr
[
0
]
+
(
sal_Int32
)
m_ptr
[
1
+
(
sal_Int32
)
m_ptr
[
0
]
]
];
//There is a one byte length field at m_ptr[2 + m_ptr[0] + m_ptr[1
return
OUString
(
m_ptr
+
3
+
m_ptr
[
0
]
+
(
sal_Int32
)
m_ptr
[
1
+
(
sal_Int32
)
m_ptr
[
0
]
],
//+ m_ptr[0]]] but by default sal_Char is signed so anything larger
sizeOfTitle
,
//than 127 defaults to a negative value, casting it would allow up
RTL_TEXTENCODING_UTF8
);
//to 255 but instead make use of the null termination to avoid
//running into a later problem with strings >= 255
const
sal_Char
*
pTitle
=
m_ptr
+
3
+
m_ptr
[
0
]
+
(
sal_Int32
)
m_ptr
[
1
+
(
sal_Int32
)
m_ptr
[
0
]
];
return
OUString
(
pTitle
,
rtl_str_getLength
(
pTitle
),
RTL_TEXTENCODING_UTF8
);
}
}
...
...
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