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
aa436024
Kaydet (Commit)
aa436024
authored
Tem 05, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#983493 String Overflow
Change-Id: I31a167508ca33e8d6ccc13690c013c39566b9447
üst
ce55457a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
process.cxx
sal/osl/unx/process.cxx
+14
-11
No files found.
sal/osl/unx/process.cxx
Dosyayı görüntüle @
aa436024
...
...
@@ -124,23 +124,26 @@ static oslProcessError SAL_CALL osl_searchPath_impl(const sal_Char* pszName,
*
pstr
++
=
'/'
;
*
pstr
=
'\0'
;
size_t
reminder
=
PATH_MAX
-
strlen
(
path
);
if
(
reminder
>
strlen
(
pszName
))
{
strncat
(
path
,
pszName
,
reminder
);
strcat
(
path
,
pszName
);
if
(
access
(
path
,
0
)
==
0
)
{
char
szRealPathBuf
[
PATH_MAX
+
1
]
=
""
;
if
(
access
(
path
,
0
)
==
0
)
{
char
szRealPathBuf
[
PATH_MAX
]
=
""
;
if
(
NULL
==
realpath
(
path
,
szRealPathBuf
)
||
(
strlen
(
szRealPathBuf
)
>=
(
sal_uInt32
)
Max
))
return
osl_Process_E_Unknown
;
if
(
NULL
==
realpath
(
path
,
szRealPathBuf
)
||
(
strlen
(
szRealPathBuf
)
>=
(
sal_uInt32
)
Max
))
return
osl_Process_E_Unknown
;
strcpy
(
pszBuffer
,
path
);
strcpy
(
pszBuffer
,
path
);
return
osl_Process_E_None
;
}
return
osl_Process_E_None
;
if
(
*
pchr
==
':'
)
pchr
++
;
}
if
(
*
pchr
==
':'
)
pchr
++
;
}
}
...
...
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