aboutsummaryrefslogtreecommitdiff
path: root/bfd/verilog.c
diff options
context:
space:
mode:
authorBranko Drevensek <branko.drevensek@gmail.com>2015-02-19 22:05:21 +1030
committerAlan Modra <amodra@gmail.com>2015-02-19 22:08:05 +1030
commit837914eeb43cd0231cc3c25e8644f0d6190034e6 (patch)
tree53e2627646240b067fa0bf3b16ad73088847d37f /bfd/verilog.c
parentdfaf2c472c619338d2dbf4e3a72a251dd45c34c0 (diff)
downloadgdb-837914eeb43cd0231cc3c25e8644f0d6190034e6.zip
gdb-837914eeb43cd0231cc3c25e8644f0d6190034e6.tar.gz
gdb-837914eeb43cd0231cc3c25e8644f0d6190034e6.tar.bz2
Fix buffer overrun in verilog code
PR 17995 * verilog.c (verilog_write_record): Correct buffer size.
Diffstat (limited to 'bfd/verilog.c')
-rw-r--r--bfd/verilog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/verilog.c b/bfd/verilog.c
index 89db58c..a312f49 100644
--- a/bfd/verilog.c
+++ b/bfd/verilog.c
@@ -191,7 +191,7 @@ verilog_write_record (bfd *abfd,
const bfd_byte *data,
const bfd_byte *end)
{
- char buffer[48];
+ char buffer[50];
const bfd_byte *src = data;
char *dst = buffer;
bfd_size_type wrlen;