diff options
author | Nick Clifton <nickc@redhat.com> | 2012-05-16 15:25:30 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-05-16 15:25:30 +0000 |
commit | 536695d0f7f0ec6d32b0727fc6cb443455bbc333 (patch) | |
tree | 39e5925b5a614c2db2ef71361be19c5cb2be3c7a /gas/app.c | |
parent | PR 13503 (diff) | |
download | binutils-gdb-536695d0f7f0ec6d32b0727fc6cb443455bbc333.tar.gz binutils-gdb-536695d0f7f0ec6d32b0727fc6cb443455bbc333.tar.bz2 binutils-gdb-536695d0f7f0ec6d32b0727fc6cb443455bbc333.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/app.c b/gas/app.c index e5a768716e9..aafee2a4a50 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); |