projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparc: support %dN and %qN syntax for FP registers.
[deliverable/binutils-gdb.git]
/
bfd
/
pei-x86_64.c
diff --git
a/bfd/pei-x86_64.c
b/bfd/pei-x86_64.c
index 51bf39046cbe02a6ff892b78282888f03cda387a..ef063367f15c528d84d3a313425c333e93f5e11a 100644
(file)
--- a/
bfd/pei-x86_64.c
+++ b/
bfd/pei-x86_64.c
@@
-1,5
+1,5
@@
/* BFD back-end for Intel 386 PE IMAGE COFF files.
/* BFD back-end for Intel 386 PE IMAGE COFF files.
- Copyright (C) 2006-201
4
Free Software Foundation, Inc.
+ Copyright (C) 2006-201
5
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This file is part of BFD, the Binary File Descriptor library.
@@
-346,7
+346,7
@@
pex64_dump_xdata (FILE *file, bfd *abfd,
end_addr = sec_size;
pex64_get_unwind_info (abfd, &ui, &xdata[addr]);
end_addr = sec_size;
pex64_get_unwind_info (abfd, &ui, &xdata[addr]);
-
+
if (ui.Version != 1 && ui.Version != 2)
{
unsigned int i;
if (ui.Version != 1 && ui.Version != 2)
{
unsigned int i;
@@
-601,11
+601,12
@@
pex64_bfd_print_pdata_section (bfd *abfd, void *vfile, asection *pdata_section)
section name, replacing .pdata by .xdata prefix. */
if (strcmp (pdata_section->name, ".pdata") != 0)
{
section name, replacing .pdata by .xdata prefix. */
if (strcmp (pdata_section->name, ".pdata") != 0)
{
- char *xdata_name = alloca (strlen (pdata_section->name + 1));
+ size_t len = strlen (pdata_section->name);
+ char *xdata_name = alloca (len + 1);
- xdata_name =
strcpy (xdata_name, pdata_section->name
);
+ xdata_name =
memcpy (xdata_name, pdata_section->name, len + 1
);
/* Transform .pdata prefix into .xdata prefix. */
/* Transform .pdata prefix into .xdata prefix. */
- if (
strlen (xdata_name)
> 1)
+ if (
len
> 1)
xdata_name [1] = 'x';
xdata_section = pex64_get_section_by_rva (abfd, xdata_base,
xdata_name);
xdata_name [1] = 'x';
xdata_section = pex64_get_section_by_rva (abfd, xdata_base,
xdata_name);
This page took
0.023374 seconds
and
4
git commands to generate.