This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in readelf


Hi Martin,

In the CVS Head version of binutils/readelf.c,

7390:                  warn (_("%s: skipping unexpected symbol type %s in relocation in section .rela%s\n"),
7391:                        get_symbol_type (ELF32_ST_TYPE (sym->st_info)),
7392:                        SECTION_NAME (section));

contain 3 %s, while only two parameters are provided. This can cause a segementation fault.

Thanks for reporting this bug. I have checked in the obvious patch to fix the problem, along with this ChangeLog entry.


Cheers
  Nick

binutils/ChangeLog
2005-04-16  Nick Clifton  <nickc@redhat.com>

	* readelf.c (debug_apply_rela_addends): Remove redundant %s from
	printf string.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]