Fix buffer overrun in verilog code

PR 17995
	* verilog.c (verilog_write_record): Correct buffer size.
This commit is contained in:
Branko Drevensek 2015-02-19 22:05:21 +10:30 committed by Alan Modra
parent dfaf2c472c
commit 837914eeb4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-02-19 Branko Drevensek <branko.drevensek@gmail.com>
PR 17995
* verilog.c (verilog_write_record): Correct buffer size.
2015-02-19 Alan Modra <amodra@gmail.com>
* elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier.

View file

@ -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;