aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index ac0048d..58d79b2 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3760,7 +3760,8 @@ ignore_rest_of_line (void)
input_line_pointer++;
/* Return pointing just after end-of-line. */
- know (is_end_of_line[(unsigned char) input_line_pointer[-1]]);
+ if (input_line_pointer <= buffer_limit)
+ know (is_end_of_line[(unsigned char) input_line_pointer[-1]]);
}
/* Sets frag for given symbol to zero_address_frag, except when the