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
1a6e3d52
Commit
1a6e3d52
authored
Sep 01, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_definition): Don't dump core when given an unterminated string
in a -D option. From-SVN: r8013
parent
aae43c5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
gcc/cccp.c
+12
-1
No files found.
gcc/cccp.c
View file @
1a6e3d52
...
@@ -9289,7 +9289,18 @@ make_definition (str, op)
...
@@ -9289,7 +9289,18 @@ make_definition (str, op)
p
++
;
p
++
;
q
=
&
buf
[
p
-
str
];
q
=
&
buf
[
p
-
str
];
while
(
*
p
)
{
while
(
*
p
)
{
if
(
*
p
==
'\\'
&&
p
[
1
]
==
'\n'
)
if
(
*
p
==
'\"'
||
*
p
==
'\''
)
{
int
unterminated
=
0
;
U_CHAR
*
p1
=
skip_quoted_string
(
p
,
p
+
strlen
(
p
),
0
,
NULL_PTR
,
NULL_PTR
,
&
unterminated
);
if
(
unterminated
)
return
;
while
(
p
!=
p1
)
if
(
*
p
==
'\\'
&&
p
[
1
]
==
'\n'
)
p
+=
2
;
else
*
q
++
=
*
p
++
;
}
else
if
(
*
p
==
'\\'
&&
p
[
1
]
==
'\n'
)
p
+=
2
;
p
+=
2
;
/* Change newline chars into newline-markers. */
/* Change newline chars into newline-markers. */
else
if
(
*
p
==
'\n'
)
else
if
(
*
p
==
'\n'
)
...
...
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