Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
8c121ccb
Commit
8c121ccb
authored
Nov 14, 2011
by
Nathan Sidwell
Committed by
Nathan Sidwell
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcov.c (canonicalize_name): Protect use of S_ISLNK.
From-SVN: r181367
parent
2f5623b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
gcc/ChangeLog
+4
-0
gcc/gcov.c
+8
-3
No files found.
gcc/ChangeLog
View file @
8c121ccb
2011
-
11
-
14
Nathan
Sidwell
<
nathan
@
acm
.
org
>
*
gcov
.
c
(
canonicalize_name
):
Protect
use
of
S_ISLNK
.
2011
-
11
-
14
Jan
Hubicka
<
jh
@
suse
.
cz
>
2011
-
11
-
14
Jan
Hubicka
<
jh
@
suse
.
cz
>
*
config
/
i386
/
i386
.
c
(
core
cost
model
):
Correct
pasto
.
*
config
/
i386
/
i386
.
c
(
core
cost
model
):
Correct
pasto
.
gcc/gcov.c
View file @
8c121ccb
...
@@ -1688,10 +1688,15 @@ canonicalize_name (const char *name)
...
@@ -1688,10 +1688,15 @@ canonicalize_name (const char *name)
{
{
/* '..', we can only elide it and the previous directory, if
/* '..', we can only elide it and the previous directory, if
we're not a symlink. */
we're not a symlink. */
struct
stat
buf
;
struct
stat
ATTRIBUTE_UNUSED
buf
;
*
ptr
=
0
;
*
ptr
=
0
;
if
(
dd_base
==
ptr
||
stat
(
result
,
&
buf
)
||
S_ISLNK
(
buf
.
st_mode
))
if
(
dd_base
==
ptr
#if defined (S_ISLNK)
/* S_ISLNK is not POSIX.1-1996. */
||
stat
(
result
,
&
buf
)
||
S_ISLNK
(
buf
.
st_mode
)
#endif
)
{
{
/* Cannot elide, or unreadable or a symlink. */
/* Cannot elide, or unreadable or a symlink. */
dd_base
=
ptr
+
2
+
slash
;
dd_base
=
ptr
+
2
+
slash
;
...
...
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