mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
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:
parent
c9f02c3e29
commit
5235cd6861
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user