projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8c1229
)
PR 4722
author
Alan Modra
<amodra@gmail.com>
Tue, 3 Jul 2007 02:42:16 +0000
(
02:42
+0000)
committer
Alan Modra
<amodra@gmail.com>
Tue, 3 Jul 2007 02:42:16 +0000
(
02:42
+0000)
* app.c (do_scrub_chars <state 5>): Check for output buffer full
after memcpy.
gas/ChangeLog
patch
|
blob
|
history
gas/app.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index a1b434a1e104b2be5954f4b7383739bb4739ce85..170934edb8d159a16da9e7b7a9a7fda5a033f8a3 100644
(file)
--- 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,
diff --git
a/gas/app.c
b/gas/app.c
index d7eb50926d2cf91621137725bea8afb57e4347d8..e5f177801fdb264484b4187786f40bf0a36c5920 100644
(file)
--- 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;
}
}