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
9b401751
Kaydet (Commit)
9b401751
authored
Eki 04, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#706158 Copy into fixed size buffer
Change-Id: I5d540e6e3a21b0563febb70696882439a10b9b86
üst
bb78299e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
include.c
soltools/mkdepend/include.c
+24
-5
No files found.
soltools/mkdepend/include.c
Dosyayı görüntüle @
9b401751
...
...
@@ -91,11 +91,30 @@ struct inclist *inc_path(char *file, char *include, boolean dot, struct Includes
if
(
*
p
==
'/'
)
break
;
if
(
p
==
file
)
strcpy
(
path
,
include
);
else
{
strncpy
(
path
,
file
,
(
p
-
file
)
+
1
);
path
[
(
p
-
file
)
+
1
]
=
'\0'
;
strcpy
(
path
+
(
p
-
file
)
+
1
,
include
);
{
if
(
strlen
(
include
)
>=
BUFSIZ
)
{
fatalerr
(
"include filename too long
\"
%s
\"\n
"
,
include
);
}
else
{
strcpy
(
path
,
include
);
}
}
else
{
int
partial
=
(
p
-
file
);
int
inc_len
=
strlen
(
include
);
if
(
inc_len
+
partial
>=
BUFSIZ
)
{
fatalerr
(
"include filename too long
\"
%s
\"\n
"
,
include
);
}
else
{
memcpy
(
path
,
file
,
partial
);
memcpy
(
path
+
partial
,
include
,
inc_len
);
path
[
partial
+
inc_len
]
=
0
;
}
}
remove_dotdot
(
path
);
if
((
exists_path
(
incCollection
,
path
))
&&
stat
(
path
,
&
st
)
==
0
&&
!
(
st
.
st_mode
&
S_IFDIR
))
{
...
...
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