diff options
author | Branko Drevensek <branko.drevensek@gmail.com> | 2015-02-19 22:05:21 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-02-19 22:08:05 +1030 |
commit | 837914eeb43cd0231cc3c25e8644f0d6190034e6 (patch) | |
tree | 53e2627646240b067fa0bf3b16ad73088847d37f /bfd/verilog.c | |
parent | dfaf2c472c619338d2dbf4e3a72a251dd45c34c0 (diff) | |
download | gdb-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.c | 2 |
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; |