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
385d061b
Commit
385d061b
authored
Jul 05, 2000
by
Zack Weinberg
Committed by
Zack Weinberg
Jul 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
From-SVN: r34872
parent
dca888c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/cpplib.c
+2
-2
No files found.
gcc/ChangeLog
View file @
385d061b
2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
* cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
* cpplex.c: Don't include sys/mman.h.
* cpplex.c: Don't include sys/mman.h.
...
...
gcc/cpplib.c
View file @
385d061b
...
@@ -1322,8 +1322,8 @@ _cpp_parse_assertion (pfile, answerp)
...
@@ -1322,8 +1322,8 @@ _cpp_parse_assertion (pfile, answerp)
lookup_node
:
lookup_node
:
*
answerp
=
answer
;
*
answerp
=
answer
;
len
=
predicate
->
val
.
name
.
len
+
1
;
len
=
predicate
->
val
.
name
.
len
;
sym
=
alloca
(
len
);
sym
=
alloca
(
len
+
1
);
/* Prefix '#' to get it out of macro namespace. */
/* Prefix '#' to get it out of macro namespace. */
sym
[
0
]
=
'#'
;
sym
[
0
]
=
'#'
;
...
...
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