diff options
author | Alan Modra <amodra@gmail.com> | 2007-07-03 02:42:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-07-03 02:42:16 +0000 |
commit | df816087248d86b7397528dfceb82ed3952bd3c2 (patch) | |
tree | 22da9aac15e2f223644ac2e2c9598533deab20a1 /gas/app.c | |
parent | * target-descriptions.c (tdesc_create_reg): Do not set reg->type (diff) | |
download | binutils-gdb-df816087248d86b7397528dfceb82ed3952bd3c2.tar.gz binutils-gdb-df816087248d86b7397528dfceb82ed3952bd3c2.tar.bz2 binutils-gdb-df816087248d86b7397528dfceb82ed3952bd3c2.zip |
PR 4722
* app.c (do_scrub_chars <state 5>): Check for output buffer full
after memcpy.
Diffstat (limited to 'gas/app.c')
-rw-r--r-- | gas/app.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/app.c b/gas/app.c index d7eb50926d2..e5f177801fd 100644 --- a/gas/app.c +++ b/gas/app.c @@ -550,6 +550,8 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) memcpy (to, from, len); to += len; from += len; + if (to >= toend) + goto tofull; } } |