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
7fbfc124
Kaydet (Commit)
7fbfc124
authored
Ara 04, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Still no need for osl_setCommandArgs
(TOCTOU and all) Change-Id: I81253c8790b631117634bafa4eea65991a975ba0
üst
9eda6b30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
init.cxx
desktop/source/lib/init.cxx
+1
-5
process_impl.cxx
sal/osl/unx/process_impl.cxx
+1
-1
process.cxx
sal/osl/w32/process.cxx
+1
-0
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
7fbfc124
...
@@ -693,11 +693,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
...
@@ -693,11 +693,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
// again (as an assert will fire), this will be the case e.g.
// again (as an assert will fire), this will be the case e.g.
// for unit tests (and possibly if UNO is being used in addition
// for unit tests (and possibly if UNO is being used in addition
// to LOK in an external program).
// to LOK in an external program).
if
(
!
osl_areCommandArgsSet
())
osl_setCommandArgs
(
2
,
pArgs
);
{
SAL_INFO
(
"lok"
,
"commandArgs not previously set"
);
osl_setCommandArgs
(
2
,
pArgs
);
}
SAL_INFO
(
"lok"
,
"attempting to initalize UNO"
);
SAL_INFO
(
"lok"
,
"attempting to initalize UNO"
);
initialize_uno
(
aAppURL
);
initialize_uno
(
aAppURL
);
SAL_INFO
(
"lok"
,
"uno successfully initalized"
);
SAL_INFO
(
"lok"
,
"uno successfully initalized"
);
...
...
sal/osl/unx/process_impl.cxx
Dosyayı görüntüle @
7fbfc124
...
@@ -205,7 +205,7 @@ void SAL_CALL osl_setCommandArgs (int argc, char ** argv)
...
@@ -205,7 +205,7 @@ void SAL_CALL osl_setCommandArgs (int argc, char ** argv)
{
{
assert
(
argc
>
0
);
assert
(
argc
>
0
);
pthread_mutex_lock
(
&
(
g_command_args
.
m_mutex
));
pthread_mutex_lock
(
&
(
g_command_args
.
m_mutex
));
assert
(
g_command_args
.
m_nCount
==
0
);
SAL_WARN_IF
(
g_command_args
.
m_nCount
!=
0
,
"sal.osl"
,
"args already set"
);
if
(
g_command_args
.
m_nCount
==
0
)
if
(
g_command_args
.
m_nCount
==
0
)
{
{
rtl_uString
**
ppArgs
=
(
rtl_uString
**
)
rtl_allocateZeroMemory
(
argc
*
sizeof
(
rtl_uString
*
));
rtl_uString
**
ppArgs
=
(
rtl_uString
**
)
rtl_allocateZeroMemory
(
argc
*
sizeof
(
rtl_uString
*
));
...
...
sal/osl/w32/process.cxx
Dosyayı görüntüle @
7fbfc124
...
@@ -374,6 +374,7 @@ void SAL_CALL osl_setCommandArgs (int argc, char ** argv)
...
@@ -374,6 +374,7 @@ void SAL_CALL osl_setCommandArgs (int argc, char ** argv)
{
{
assert
(
argc
>
0
);
assert
(
argc
>
0
);
osl_acquireMutex
(
*
osl_getGlobalMutex
());
osl_acquireMutex
(
*
osl_getGlobalMutex
());
SAL_WARN_IF
(
g_command_args
.
m_nCount
!=
0
,
"sal.osl"
,
"args already set"
);
if
(
g_command_args
.
m_nCount
==
0
)
if
(
g_command_args
.
m_nCount
==
0
)
{
{
rtl_uString
**
ppArgs
=
osl_createCommandArgs_Impl
(
argc
,
argv
);
rtl_uString
**
ppArgs
=
osl_createCommandArgs_Impl
(
argc
,
argv
);
...
...
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