From 409d19c41aeeb7dc21613fdb7efd54e0f3a23c89 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 27 Jul 2001 08:35:56 +0000 Subject: [PATCH] * read.c (s_set): Check for missing symbol name. --- gas/ChangeLog | 4 ++++ gas/read.c | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index dc13dc10027..f2f84817997 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2001-07-27 Tracy Kuhrt + + * read.c (s_set): Check for missing symbol name. + 2001-07-26 Alan Modra * write.c (relax_segment ): Account for fr_fix. diff --git a/gas/read.c b/gas/read.c index de3d9fdde51..c6ee4abc603 100644 --- a/gas/read.c +++ b/gas/read.c @@ -2737,6 +2737,15 @@ s_set (equiv) name = input_line_pointer; delim = get_symbol_end (); end_name = input_line_pointer; + + if (name[0] == '\0') + { + as_bad (_("expected symbol name")); + *end_name = delim; + discard_rest_of_line (); + return; + } + *end_name = delim; SKIP_WHITESPACE ();