aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-09-28 12:31:44 +0000
committerAlan Modra <amodra@gmail.com>2005-09-28 12:31:44 +0000
commit37b75c0cc089664dafeed5720c2cfe11183089df (patch)
treee574f29474569472b26a834e45e2da9a2bab3703 /gas/app.c
parent7f1ee71f57810d9518dbfcb23ec83fb95d5feea4 (diff)
downloadfsf-binutils-gdb-37b75c0cc089664dafeed5720c2cfe11183089df.zip
fsf-binutils-gdb-37b75c0cc089664dafeed5720c2cfe11183089df.tar.gz
fsf-binutils-gdb-37b75c0cc089664dafeed5720c2cfe11183089df.tar.bz2
* app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for full
buffer after copying string.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/app.c b/gas/app.c
index 9666ce5..d33089a 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -1302,6 +1302,8 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
case 1: *to++ = *from++;
}
}
+ if (to >= toend)
+ goto tofull;
ch = GET ();
}
}