* app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for full
authorAlan Modra <amodra@gmail.com>
Wed, 28 Sep 2005 12:31:44 +0000 (12:31 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Sep 2005 12:31:44 +0000 (12:31 +0000)
buffer after copying string.

gas/ChangeLog
gas/app.c

index 314bcf0..de17088 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-28  Arnold Metselaar  <arnold.metselaar@planet.nl>
+
+       * app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for full
+       buffer after copying string.
+
 2005-09-27  Paul Brook  <paul@codesourcery.com>
 
        * config/arm.c (arm_cpus): Add more cpu names.
        epilogue_begin, is_stmt, isa.
        (emit_inc_line_addr): Move line_delta == 0, addr_delta == 0 special
        case down lower.
-       (process_entries): Handle isa, DWARF2_FLAG_PROLOGUE_END, 
+       (process_entries): Handle isa, DWARF2_FLAG_PROLOGUE_END,
        and DWARF2_FLAG_EPILOGUE_BEGIN.
        (out_debug_line): Emit sizes for DW_LNS_set_prologue_end,
        DW_LNS_set_epilogue_begin, DW_LNS_set_isa.
 2005-09-01  Dmitry Diky  <diwil@spec.ru>
 
        * config/tc-msp430.c (msp430_operands): Emit dwarf2_emit_insn()
-       as appropriate. Change frag_variant() to frag_var() for relaxes. 
+       as appropriate. Change frag_variant() to frag_var() for relaxes.
 
 2005-08-29  Nick Clifton  <nickc@redhat.com>
 
        * config/tc-msp430.h (TC_FORCE_RELOCATION_LOCAL): Defined.
        (msp430_force_relocation_local): Likewise.
        * doc/c-msp430.texi: Describe new options.
-       
+
 2005-08-11  Ian Lance Taylor  <ian@airs.com>
 
        * Makefile.am ($(srcdir)/make-gas.com): Remove target.
        * doc/as.texinfo: Add text for the M32C-specific options and line
        comment characters, and refer to c-m32c.texi.
        * doc/c-m32c.texi: New file.
-       
+
 2005-07-14  Nick Clifton  <nickc@redhat.com>
 
        PR 1069
index 9666ce5..d33089a 100644 (file)
--- 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 ();
                }
            }