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
24714f5e
Kaydet (Commit)
24714f5e
authored
Kas 18, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix memchr checks
(thanks caolan for spotting) Change-Id: I17093b4173b9a2fca2760240375bcb14313224ef
üst
04d4b703
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
reflread.cxx
registry/source/reflread.cxx
+5
-2
No files found.
registry/source/reflread.cxx
Dosyayı görüntüle @
24714f5e
...
...
@@ -363,7 +363,8 @@ const sal_Char* ConstantPool::readUTF8NameConstant(sal_uInt16 index)
if
(
readUINT16
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_TAG
)
==
CP_TAG_UTF8_NAME
)
{
sal_uInt32
n
=
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_DATA
;
if
(
n
<
m_bufferLen
&&
std
::
memchr
(
m_pBuffer
,
0
,
n
)
!=
nullptr
)
if
(
n
<
m_bufferLen
&&
std
::
memchr
(
m_pBuffer
+
n
,
0
,
m_bufferLen
-
n
)
!=
nullptr
)
{
aName
=
(
const
sal_Char
*
)
(
m_pBuffer
+
n
);
}
...
...
@@ -564,7 +565,9 @@ const sal_Unicode* ConstantPool::readStringConstant(sal_uInt16 index)
if
(
readUINT16
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_TAG
)
==
CP_TAG_CONST_STRING
)
{
sal_uInt32
n
=
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_DATA
;
if
(
n
>=
m_bufferLen
||
std
::
memchr
(
m_pBuffer
,
0
,
n
)
==
nullptr
)
if
(
n
>=
m_bufferLen
||
(
std
::
memchr
(
m_pBuffer
+
n
,
0
,
m_bufferLen
-
n
)
==
nullptr
))
{
throw
BoundsError
();
}
...
...
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