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 | |
parent | c8c122932061ba5c68cc6893262990463162de1c (diff) | |
download | binutils-df816087248d86b7397528dfceb82ed3952bd3c2.zip binutils-df816087248d86b7397528dfceb82ed3952bd3c2.tar.gz binutils-df816087248d86b7397528dfceb82ed3952bd3c2.tar.bz2 |
PR 4722
* app.c (do_scrub_chars <state 5>): Check for output buffer full
after memcpy.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/app.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index a1b434a..170934e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2007-07-03 Mikkel Lauritsen <renard@nospam.dk> + + PR 4722 + * app.c (do_scrub_chars <state 5>): Check for output buffer full + after memcpy. + 2007-07-02 Joseph Myers <joseph@codesourcery.com> * config/tc-mips.c (s_dtprelword, s_dtpreldword, @@ -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; } } |