mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +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:
@ -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>
|
2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
|
||||||
|
|
||||||
* readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
|
* readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
|
||||||
|
@ -10026,8 +10026,8 @@ process_version_sections (FILE * file)
|
|||||||
Elf_Internal_Verdef ent;
|
Elf_Internal_Verdef ent;
|
||||||
Elf_External_Verdaux * eaux;
|
Elf_External_Verdaux * eaux;
|
||||||
Elf_Internal_Verdaux aux;
|
Elf_Internal_Verdaux aux;
|
||||||
|
unsigned int isum;
|
||||||
int j;
|
int j;
|
||||||
int isum;
|
|
||||||
|
|
||||||
/* Check for very large indices. */
|
/* Check for very large indices. */
|
||||||
if (idx > (size_t) (endbuf - (char *) edefs))
|
if (idx > (size_t) (endbuf - (char *) edefs))
|
||||||
@ -10143,8 +10143,8 @@ process_version_sections (FILE * file)
|
|||||||
{
|
{
|
||||||
Elf_External_Verneed * entry;
|
Elf_External_Verneed * entry;
|
||||||
Elf_Internal_Verneed ent;
|
Elf_Internal_Verneed ent;
|
||||||
|
unsigned int isum;
|
||||||
int j;
|
int j;
|
||||||
int isum;
|
|
||||||
char * vstart;
|
char * vstart;
|
||||||
|
|
||||||
if (idx > (size_t) (endbuf - (char *) eneed))
|
if (idx > (size_t) (endbuf - (char *) eneed))
|
||||||
|
Reference in New Issue
Block a user