readelf: Make version section index sum unsigned

Make `isum' unsigned like data it is calculated from.

	binutils/
	* readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
	`isum' unsigned.
	<SHT_GNU_verneed>: Likewise.
This commit is contained in:
Maciej W. Rozycki 2017-02-23 18:16:55 +00:00
parent c9f02c3e29
commit 5235cd6861
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
* readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
`isum' unsigned.
<SHT_GNU_verneed>: Likewise.
2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
* readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit

View File

@ -10026,8 +10026,8 @@ process_version_sections (FILE * file)
Elf_Internal_Verdef ent;
Elf_External_Verdaux * eaux;
Elf_Internal_Verdaux aux;
unsigned int isum;
int j;
int isum;
/* Check for very large indices. */
if (idx > (size_t) (endbuf - (char *) edefs))
@ -10143,8 +10143,8 @@ process_version_sections (FILE * file)
{
Elf_External_Verneed * entry;
Elf_Internal_Verneed ent;
unsigned int isum;
int j;
int isum;
char * vstart;
if (idx > (size_t) (endbuf - (char *) eneed))