projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b048e
)
(process_command): Check that we have enough arguments.
author
Richard Stallman
<rms@gnu.org>
Wed, 28 Oct 1992 21:20:57 +0000
(21:20 +0000)
committer
Richard Stallman
<rms@gnu.org>
Wed, 28 Oct 1992 21:20:57 +0000
(21:20 +0000)
From-SVN: r2636
gcc/gcc.c
patch
|
blob
|
history
diff --git
a/gcc/gcc.c
b/gcc/gcc.c
index f1cf450865cdaf0cb095cf1c25612047d18720ae..74e53b4faadf36378cd4481534f14262c34f378d 100644
(file)
--- a/
gcc/gcc.c
+++ b/
gcc/gcc.c
@@
-2197,6
+2197,8
@@
process_command (argc, argv)
/* Count only the option arguments in separate argv elements. */
n_args = SWITCH_TAKES_ARG (c) - (p[1] != 0);
}
+ if (i + n_args >= argc)
+ fatal ("argument to `-%s' is missing", p);
switches[n_switches].args
= (char **) xmalloc ((n_args + 1) * sizeof (char *));
while (j < n_args)