From 37b75c0cc089664dafeed5720c2cfe11183089df Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 28 Sep 2005 12:31:44 +0000 Subject: [PATCH] * app.c (do_scrub_chars ): Check for full buffer after copying string. --- gas/ChangeLog | 13 +++++++++---- gas/app.c | 2 ++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 314bcf06854..de17088f7d6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-09-28 Arnold Metselaar + + * app.c (do_scrub_chars ): Check for full + buffer after copying string. + 2005-09-27 Paul Brook * config/arm.c (arm_cpus): Add more cpu names. @@ -95,7 +100,7 @@ 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. @@ -190,7 +195,7 @@ 2005-09-01 Dmitry Diky * 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 @@ -333,7 +338,7 @@ * 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 * Makefile.am ($(srcdir)/make-gas.com): Remove target. @@ -778,7 +783,7 @@ * 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 PR 1069 diff --git a/gas/app.c b/gas/app.c index 9666ce58aca..d33089a10ad 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 (); } } -- 2.30.2