[PATCH 2/3] readelf: Make version section index sum unsigned
Maciej W. Rozycki
macro@imgtec.com
Thu Feb 23 18:17:00 GMT 2017
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.
---
OK to apply?
Maciej
binutils-readelf-verdef-isum-unsigned.diff
Index: binutils/binutils/readelf.c
===================================================================
--- binutils.orig/binutils/readelf.c 2017-02-23 17:02:03.252556979 +0000
+++ binutils/binutils/readelf.c 2017-02-23 17:45:01.969909280 +0000
@@ -10024,8 +10024,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))
@@ -10141,8 +10141,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))
More information about the Binutils
mailing list