summaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-16 15:25:30 +0000
committerNick Clifton <nickc@redhat.com>2012-05-16 15:25:30 +0000
commit7a200090a16d025ab2895e7cf035ab5b35954f24 (patch)
tree0e4e9022921e3c9d9fe10395815af5315ae17e01 /gas/app.c
parentaa09952325729634f03c39c8933017cf3424ea81 (diff)
downloadbinutils-redhat-7a200090a16d025ab2895e7cf035ab5b35954f24.tar.gz
PR gas/14082
* app.c (do_scrub_chars): Prevent possible out of bounds access to lex[] array.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/app.c b/gas/app.c
index e5a768716e..aafee2a4a5 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -1344,7 +1344,7 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
else
{
state = 9;
- if (!IS_SYMBOL_COMPONENT (ch))
+ if (ch == EOF || !IS_SYMBOL_COMPONENT (ch))
{
if (ch != EOF)
UNGET (ch);